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

Code blocks being detected as inline code #223

Closed
skhavari opened this issue Oct 21, 2014 · 3 comments
Closed

Code blocks being detected as inline code #223

skhavari opened this issue Oct 21, 2014 · 3 comments

Comments

@skhavari
Copy link

repro: convert the following markdown text with gruber

var x = new Date();

expect: the output to be a preformatted code block

var x = new Date();

actual: parser detects input as inline code and is outputting the following

js var x = new Date();

@jaredatron
Copy link

+1
Also being able to register parsers for each kind of code block would be awesome

@codingisacopingstrategy

Hello!

I don’t think the ```` code-block syntax is in the Gruber dialect? Gruber uses backticks for inline code elements, and you can use backticks as deliminators in case you want to use single backticks in the code. The output generated by markdown.js matches http://daringfireball.net/projects/markdown/dingus in this case.

Best,

@ashb
Copy link
Collaborator

ashb commented Dec 23, 2014

Fenced code blocks are from Github Flavoured Markdown (and probably a few others) which has been started but needs more work in #41

@ashb ashb closed this as completed Dec 23, 2014
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

4 participants