blocks-examples icon indicating copy to clipboard operation
blocks-examples copied to clipboard

Markdown block breaks for some syntax

Open jaked opened this issue 3 years ago • 5 comments

MDX is pickier about syntax than GitHub-Flavored Markdown:

  • it doesn't accept unclosed tags, so e.g. unclosed <img> tags are not supported (example, example)
  • "Expected Unicode escape sequence \uXXXX" (example)

jaked avatar Jul 28 '22 23:07 jaked

note: this is handled in the new Markdown-edit Block, and we might not need to tackle this if we're replacing the old Markdown Preview Block

Wattenberger avatar Aug 08 '22 16:08 Wattenberger

huh does the new Markdown-edit block use something other than MDX to render pages? I would expect to see the same bug otherwise.

jaked avatar Aug 15 '22 20:08 jaked

it does! it's just CodeMirror with a bunch of custom plugins and a Markdown parser

Wattenberger avatar Aug 15 '22 23:08 Wattenberger

whoa! gotta read that code

jaked avatar Aug 16 '22 00:08 jaked

Not sure if it's the same issue or not, but noted the tables in the examples repo weren't rendering properly in blocks, but were in the normal site.

Screenshot 2023-01-31 at 4 36 20 PM Screenshot 2023-01-31 at 4 36 42 PM

tattwamasi avatar Feb 01 '23 00:02 tattwamasi