Explores an edge-case bug in markdown-it where wrapping code blocks in HTML elements (like divs) causes unwanted paragraph tags to be inserted. The issue occurs when preprocessing Markdown with syntax highlighting plugins that return wrapped HTML. Provides workarounds including using triple backtick syntax instead of pre tags,
•3m read time• From zachleat.com
Sort: