sawhney17 / logseq-pdf-export

MIT License
107 stars 6 forks source link

Code blocks are ignored #33

Closed iamkroot closed 4 months ago

iamkroot commented 1 year ago

It seems that code blocks are not supported as yet.

The following markdown:

- This is a normal line  
-  
  This is inside a code block

  # this is not a heading

  this should _not_ be emphasized

  End of code block
- This is a normal line again  
-

Generates this pdf where the lines inside the codeblock are improperly formatted.

Screenshot_20221104_115035

Also, it seems the bullets are also broken.

sdasda7777 commented 5 months ago

Yup, this is so annoying!

sdasda7777 commented 5 months ago

I'll look into this ASAP 😄

sdasda7777 commented 5 months ago

The example text looks like this now:

image

sdasda7777 commented 4 months ago

I managed to implement partial (as in just a few languages) code highlighting using CodeMirror, but it's painful to work with. Languages must be added individually when creating the CodeMirror view, and not all languages seem to even have a package that would provide the highlighting.

image