-
-
Notifications
You must be signed in to change notification settings - Fork 271
-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Inline code broken with Rouge and line numbers #286
Comments
Thanks for reporting this! To mitigate the problem I have implemented the following changes:
|
* Turns off line numbers in code for now; cf. gettalong/kramdown#286 * Changes feed.xml to show only an excerpt; MathJax and tricky don't work there. * Introduces a plugin that nicely typsets (La)TeX. * Fixes some abstracts in the .bib file to compile properly. * Changes bibliography details template so that Markdown in abstracts is compiled. * Adds a page option for enabling MathJax. * Adds tags next to date for posts; printing of this moved to a plugin for reusability. * marginnote plugin was missing a space. * Changes syntax highlighting CSS so it works with and without line numbers. * Adds styling of <hr> in articles. * Fixes weird font in sidenotes, and line height in side- and marginnote both. * Footnotes now indent a bit, and break similarly to the rest of the page.
Could you please provide a usage example of what that syntax looks like in the _config.yml file? All I understood is that you now have that capability and flexibility. But how exactly do I fix the inline code while having |
kramdown doesn't have a Where you set this option depends on how use kramdown, e.g. if you are using the binary, you would do something like the following:
|
Oh I see where you're coming from but I was referring to the OP's context, ie using Jekyll with github's builtin markdown compilers. But thanks for the docs links. [UPDATE] For future reference, I found the solution for what you need to write in your _config.yml file for Github + Jekyll + Rouge:
|
Please ask the Jekyll team - thanks! |
I use kramdown with Rouge in my Jekyll site.
I notice that kramdown compiles inline code to
<code class="highlighter-rouge">inline code</code>
instead of simply<code>...</code>
. While it would be nice to be able to turn off highlighting in inline code, no biggy.When I set
line_numbers: true
, however, things get ugly: Rouge can or does not distinguish between inline and block code, and translates the inline code into a block with line numbers -- clearly not as intended!(The created code looks broken beyond that, too.)
The text was updated successfully, but these errors were encountered: