question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fenced code blocks attributes in curly braces break highlighting

See original GitHub issue

Thanks for this package. This issue is similar to #123. I usually add fenced code blocks attributes in curly braces, as in {.bib}. This breaks highlighting in language-markdown (gfm works fine):

screen shot 2017-03-01 at 11 33 42 am

Removing the curly braces fixes the issue:

screen shot 2017-03-01 at 11 33 52 am

I don’t insist on using curly braces, it’s just that I used to do it this way and I have a lot of older documents which I would have to readjust when I want to keep using language-markdown. Would be glad if this could be fixed.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sbaackcommented, Mar 1, 2017

Thanks for the quick reply. This problem persists when I switch to {.js}.

0reactions
sbaackcommented, Mar 1, 2017

You’re right, {js } or {.bib } works. Thanks for your work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extended Syntax - Markdown Guide
Many Markdown processors support syntax highlighting for fenced code blocks. This feature allows you to add color highlighting for whatever language your ...
Read more >
Fenced Code Blocks — Python-Markdown 3.4.1 documentation
The Fenced Code Blocks extension adds a secondary way to define code blocks, ... The attributes should be wrapped in curly braces {}...
Read more >
Certain info strings on fenced code blocks break formatting ...
A workaround for this is to remove the {.cpp} info string on the first code block, but of course that destroys the code...
Read more >
kramdown Syntax
The delimiting lines of a fenced code block do not support hard-wrapping. ... a hash, the ID and a closing curly bracket, the...
Read more >
Markdown Syntax | YouTrack Server Documentation - JetBrains
Code Blocks Without Highlights. If you specify the language attribute inside the fenced code block as text , ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found