You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of the fenced code block in markdown is to designate language formatting and keep exact spacing and formatting. However, I am using the Angular2-Markdown package which uses Marked.
When the markdown is compiled, the spacing within my code blocks is removed. This spacing is used to indent the lines and without it the code block is virtually useless.
Below is the code block using the Github markdown in this comment text:
The purpose of the fenced code block in markdown is to designate language formatting and keep exact spacing and formatting. However, I am using the Angular2-Markdown package which uses Marked.
When the markdown is compiled, the spacing within my code blocks is removed. This spacing is used to indent the lines and without it the code block is virtually useless.
Below is the code block using the Github markdown in this comment text:
Below is an image of what the code block looks like after being compiled with Angular2-Markdown and Marked:
As you can see, the Github formatted markdown keeps the spacing, while the Marked formatted markdown does not contain the spaces.
Am I missing a setting, or is this a bug as I have suspected?
I have also posted this issue on the angular2-markdown repo: dimpu/ngx-md#47
Thanks.
The text was updated successfully, but these errors were encountered: