Skip to content

fix: don't de-indent HTML inside fenced code blocks - #130

Open
reidransom wants to merge 1 commit into
osteele:mainfrom
reidransom:fix-deindent-fenced-code-blocks
Open

fix: don't de-indent HTML inside fenced code blocks#130
reidransom wants to merge 1 commit into
osteele:mainfrom
reidransom:fix-deindent-fenced-code-blocks

Conversation

@reidransom

Copy link
Copy Markdown

Hello- love this repo, I'm using it on all my websites. This is my first PR. Let me know if I can make any changes or missed any guidelines. Thank you!

deIndentHTMLBlocks operates on raw markdown lines before Goldmark parses them, so a line like

    inside a ``` fence started an "HTML block" and the following indented code-sample lines lost their leading spaces in the rendered
     output.

    Track fence state (``` and ~~~) and leave fenced content untouched.

deIndentHTMLBlocks operates on raw markdown lines before Goldmark parses
them, so a line like <ul> inside a ``` fence started an "HTML block"
and the following indented code-sample lines lost their leading spaces
in the rendered <pre> output.

Track fence state (``` and ~~~) and leave fenced content untouched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant