Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A line of many ` in fenced code breaks code block #877

Closed
frantic1048 opened this issue Mar 10, 2016 · 1 comment
Closed

A line of many ` in fenced code breaks code block #877

frantic1048 opened this issue Mar 10, 2016 · 1 comment

Comments

@frantic1048
Copy link

While I'm trying to show a simple rST code sample, I found a line of ` will break Github-flavored markdown's fenced code block.

as this gist shows(please see raw text): https://gist.github.com/frantic1048/52ed865c4d0e078d3ae4

I tried same text on StackEdit.io, it does not break fenced code when meet line of , but break on line of three.

Is there anyway for escaping ?

@shawnajean
Copy link
Member

Your external backticks need to be longer than the internal ones or you can use 3 (or more) tildes ~ for the beginning and end of the code block, for example:

https://gist.github.com/shawnajean/5d032c31a97f8ac3df90b96fdce501b7

You can read more about fenced code blocks and their formatting in our new markdown spec:

https://github.github.com/gfm/#fenced-code-blocks

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

No branches or pull requests

2 participants