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
which is different from the output I get by using the same synthax I would use if I were writing in Markdown (in particular, graphically it is shifted to the right and with one line before the code, see image below with the three examples), which gives me:
This is how the three examples appear graphically (note how the first code block is shifted below and to the right, compared to the second, one other thing I notice is the different theme... the second and third examples use the settings specified for Pygments, I believe):
The text was updated successfully, but these errors were encountered:
ermanno
changed the title
Issue exporting source code blocks
Code blocks exported with extra space above/below
Jul 10, 2017
ermanno
changed the title
Code blocks exported with extra space above/below
Issue exporting code blocks
Jul 10, 2017
ermanno
changed the title
Issue exporting code blocks
Extra space and different theme in code block exports
Jul 10, 2017
I think that this might be due to how client side syntax highlighting (i.e. with highlight.js) have issue dealing with the newline after the opening "code" tag (jekyll/jekyll-help#191).
I wanted to use Org mode to write my blog posts with Hugo, and I have some issues with how source code blocks are exported. If I use:
I get the following output:
which is different from the output I get by using the same synthax I would use if I were writing in Markdown (in particular, graphically it is shifted to the right and with one line before the code, see image below with the three examples), which gives me:
Furthermore, with that approoach I could do something like:
which would yield the following:
This is how the three examples appear graphically (note how the first code block is shifted below and to the right, compared to the second, one other thing I notice is the different theme... the second and third examples use the settings specified for Pygments, I believe):
The text was updated successfully, but these errors were encountered: