question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<em>{MyMatchString}</em> is never fed into the matchers

See original GitHub issue

Not 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:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
milesjcommented, Apr 24, 2019

@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.

0reactions
milesjcommented, Apr 27, 2019

Haven’t explicitly tested this scenario, but give v11 a shot. Closing for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found