simple-markdown icon indicating copy to clipboard operation
simple-markdown copied to clipboard

Handle inline code inside bold/italics/links

Open ariabuckles opened this issue 8 years ago • 1 comments

Currently, _italic text and code with_ pointers* doesn't match correctly. [Note: apparently it doesn't match correctly in gfm, either, so that's some validation :/.]

Handling this correctly (especially with simple-markdown's regex-based design) is tricky, but important.

We might have to write a custom matcher function for the rules where this is most important, instead of using regex matchers. For an example, see the math matching in Perseus.

ariabuckles avatar Oct 19 '16 03:10 ariabuckles

@ariabuckles would *code example: console.log(2 * 2);* be a failing example?

kevinbarabash avatar Oct 29 '16 02:10 kevinbarabash