Open rdlugosz opened 8 years ago
That's a great idea. Maybe with this? https://github.com/google/py-gfm
Thanks!
Fenced code blocks will work when I release v2
!
Howdy. Thank you for this project. Does this project support GitHub Flavored Markdown at present? Cheers! :)
It doesn't. Landslide just relies on this markdown parser: https://pypi.org/project/Markdown/
...especially for the fenced code blocks style. More info on the GFM help page.
Note that you can use extension to gain support for parsing fenced code blocks:
landslide -x extra
# or
landslice -x fenced_code
If you want to get syntax highlighting with pygment, prepend a !lang
line within the codeblock (note the lack of language in backticks):
!rust fn add(a: i32, b: i32) -> i32 { a + b }
I found that I wanted to use highlightjs instead, you can check out my theme: https://github.com/kurtlawrence/landslide-themes
For that case, the language goes after the backticks.
@kurtlawrence Thanks for your input here!
...especially for the fenced code blocks style. More info on the GFM help page.