Skip to content

Instantly share code, notes, and snippets.

@ansanloms
Last active November 18, 2020 09:21
Show Gist options
  • Save ansanloms/6faa8865ecc70ad0bfdc858c3450a98e to your computer and use it in GitHub Desktop.
Save ansanloms/6faa8865ecc70ad0bfdc858c3450a98e to your computer and use it in GitHub Desktop.
markdown css

markdown css

概要

pandocでmarkdownをhtmlに変換する際に使用するcssの選択。

前提

html変換時のコマンド:

pandoc --standalone --self-contained --table-of-contents --toc-depth=6 -t html5 --css=<css.css> <markdown.md> -o <html.html>
  • --self-contained を使ってCSSをdataURIスキームに変換して埋め込む。
    • その為、外部ファイルを参照しているcssは使用できない。

CSS

jasonm23/markdown-css-themes

https://github.com/jasonm23/markdown-css-themes

http://jasonm23.github.io/markdown-css-themes/

sindresorhus/github-markdown-css

https://github.com/sindresorhus/github-markdown-css

https://sindresorhus.com/github-markdown-css/

mrcoles/markdown-css

https://github.com/mrcoles/markdown-css

http://mrcoles.com/demo/markdown-css/

markdowncss/splendor

https://github.com/markdowncss/splendor

http://markdowncss.github.io/splendor/

markdowncss/retro

https://github.com/markdowncss/retro

http://markdowncss.github.io/retro/

markdowncss/air

https://github.com/markdowncss/air

http://markdowncss.github.io/air/

markdowncss/modest

https://github.com/markdowncss/modest

http://markdowncss.github.io/modest/

Github Markdown Stylesheet

これがよさそう。

https://gist.github.com/tuzz/3331384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment