cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

Add ability to add a custom css file to rendered HTML from Markdown #149

Closed joWeiss closed 7 years ago

joWeiss commented 7 years ago

TL;DR: New configuration key/value pair md_css_path: path/to/css/file to include a custom css file in the rendered HTML output if using markdown.


I started using nvpy on a daily basis for my notes, but I didn't want to switch to reStructuredText just to have css styling for the HTML output. So now nvpy has a new configuration setting:

md_css_path: path/to/css/file

I used the markdown-body class for styling since this is also used by styles generated with the official markdown.py extensions.

Further down the line, I would like to enable the use of the official markdown.py extensions (from https://pythonhosted.org/Markdown/) like so:

md_extensions: markdown.extensions.codehilite

If this is out of focus for nvpy, I totally understand and will just continue developing for my personal needs. :wink:

yuuki0xff commented 7 years ago

Thank you for your contribution.