adamzap / landslide

Generate HTML5 slideshows from markdown, ReST, or textile
Apache License 2.0
2.09k stars 369 forks source link

Support Github-flavored Markdown #187

Open rdlugosz opened 8 years ago

rdlugosz commented 8 years ago

...especially for the fenced code blocks style. More info on the GFM help page.

adamzap commented 8 years ago

That's a great idea. Maybe with this? https://github.com/google/py-gfm

Thanks!

adamzap commented 8 years ago

Fenced code blocks will work when I release v2!

boldandbusted commented 3 years ago

Howdy. Thank you for this project. Does this project support GitHub Flavored Markdown at present? Cheers! :)

adamzap commented 3 years ago

It doesn't. Landslide just relies on this markdown parser: https://pypi.org/project/Markdown/

kurtlawrence commented 1 year ago

...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.

adamzap commented 1 year ago

@kurtlawrence Thanks for your input here!