<em>{MyMatchString}</em> is never fed into the matchers
See original GitHub issueNot sure why, but any type of tags in this list:
'a',
'abbr',
'b',
'br',
'button',
'canvas',
'cite',
'code',
'del',
'dfn',
'em',
'i',
'iframe',
'img',
'ins',
'kbd',
'label',
'mark',
'output',
'q',
's',
'samp',
'script',
'source',
'span',
'strong',
'sub',
'sup',
Is not being parsed by the matchers. But in div and some other tag types my content gets parsed. Trying to understand why.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@robertkraig I figured out your issue. The parser checks that certain tags can be rendered within other tags here: https://github.com/milesj/interweave/blob/master/packages/core/src/Parser.ts#L197
And since
em
is marked as inline, it doesn’t permit block elements, but it should allow other inline.Haven’t explicitly tested this scenario, but give v11 a shot. Closing for now.