We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3cea89 commit a3c356dCopy full SHA for a3c356d
1 file changed
packages/render/src/render/RenderRegistry.ts
@@ -45,8 +45,18 @@ export default class RenderRegistry {
45
}
46
47
getRendererConfigForTNode<T extends TNode>(tnode: T): RendererConfig<T> {
48
+ let custom = this.getCustomRendererForTNode(tnode);
49
+
50
+ // Allow overriding all text nodes via TText
51
+ if (!custom && tnode.type === 'text') {
52
+ const textRenderer = this.customRenderers['TText'];
53
+ if (textRenderer) {
54
+ custom = textRenderer as any;
55
+ }
56
57
58
return {
- Custom: this.getCustomRendererForTNode(tnode),
59
+ Custom: custom,
60
Default: this.getDefaultRendererForTNode(tnode)
61
};
62
0 commit comments