toland / qlmarkdown

QuickLook generator for Markdown files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown parser broken. Title shown inside code block

relikd opened this issue · comments

Markdown isnt rendered properly. Especially tags contained in code blocks should be ignored.
E.g., having this code snippet "some bash script" is rendered as if it where a h1 title.

\```
# some bash script
whoami
\```

Markdown isnt rendered properly. Especially tags contained in code blocks should be ignored.
E.g., having this code snippet "some bash script" is rendered as if it where a h1 title.

\```
# some bash script
whoami
\```

syntax error is caused by you. remove \ chars

```
# some bash script
whoami
```

I've added the backslashes only to show it here in github. Obviously it wasn't necessary as you showed. However, the issue still holds.

screenshot

can you share .md file as gist.

Ok, I am not sure what is going wrong. If I download the latest release 1.3.6 (which has a CFBundleShortVersion of 1.3.5), the parser works fine. The above issue only occurs if I compile my own version. Which doesn't even touch any of the preview rendering, only the thumbnail rendering https://github.com/toland/qlmarkdown/pull/95/files.

Ekran Resmi 2020-11-28 22 56 55

homebrew version works fine.

➜  ~ brew info qlmarkdown
qlmarkdown: 1.3.6
https://github.com/toland/qlmarkdown
/usr/local/Caskroom/qlmarkdown/1.3.6 (149B)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/qlmarkdown.rb
==> Name
QLMarkdown
==> Description
QuickLook generator for Markdown files
==> Artifacts
QLMarkdown.qlgenerator (QuickLook Plugin)
==> Analytics
install: 1,872 (30 days), 5,008 (90 days), 24,925 (365 days)

@relikd This project has been abandoned. There is no point in opening a issue here.