Instantly share code, notes, and snippets.
I need to work on the MultiMarkdown specifics --- I've been using Pandoc mostly.
Sorry, something went wrong.
This worked great for me, thx for sharing!
Works exceedingly well with Pandoc. Second result in Google for "pandoc css". Thanks :)
@ryangray, nice work. What is your license on this?
How do you call this .css template in a pandoc command? Say I want to convert a markdown file to html or pdf using the css?
You can use css to convert to html. To convert to pdf from html you will either need to use wkhtmltopdf, or alternatively use a tex based template instead of css.
To convert to html you can do the following:
pandoc foo.md -s -c buttondown.css -o foo.html
If you want css file contained into html filey you can use --self-contained
pandoc foo.md -s -c buttondown.css --self-contained -o foo.html
I read this there
Magnificent! Great template to part from to create you own personal look with minimal work. Thanks!
Thanks for your work! I really like how it looks like.
The only thing I changed on my setup was something related to how images are displayed.
I changed this near line 193:
/* Let it be inline left/right where it wants to be, but verticality make
it in the middle to look nicer, but opinions differ, and if in a multi-line
paragraph, it might not be so great.
This makes images never overflow the width of the screen. I was actually looking for a way of zooming in images when the user click on them but this is as close as I could get.
Since pandoc supports remote files, something like this seems to work fine:
$ pandoc README.md -s -c https://gist.githubusercontent.com/ryangray/1882525/raw/2a6e53f645b960f0bed16d686ba3df36505f839f/buttondown.css --self-contained -o /tmp/README.html
Any idea on the reverse? generate docx from an html which has css files? The css files are referred to in the html document, and I have also tried including the css elements in the style tag in the html document. However, the docx is generated without any css impact.
What would be the RMarkdown YAML line to insert your buttondown.css? thks
It's great and simple! :) How would you put all text in a centered column? It would look nicer on larger screens...
hi, is there a way of using Pandoc with Texlive to create a pdf file where a table has borders around all rows and columns. I don't want to use any css since my workflow is a single step.
Thanks in advance
Thank you Ryan, created a repo for our cgit integration and 'stuff'