https://github.com/averms/jottings
A theme for pandoc's html output
https://github.com/averms/jottings
markdown pandoc pandoc-template
Last synced: 2 months ago
JSON representation
A theme for pandoc's html output
- Host: GitHub
- URL: https://github.com/averms/jottings
- Owner: averms
- License: other
- Created: 2018-11-02T18:10:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T15:18:38.000Z (over 6 years ago)
- Last Synced: 2025-01-26T02:44:29.856Z (over 1 year ago)
- Topics: markdown, pandoc, pandoc-template
- Language: CSS
- Homepage:
- Size: 76.2 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jottings
> A featherweight (4kb gzipped) theme for pandoc's html output
[Demo page.](https://a-vrma.github.io/jottings/)
## Usage
Put `jottings.html` in your pandoc template directory and `jottings.css` wherever you like.
Change `{{jottings}}` in `jottings.html` to the path of `jottings.css`. Here is a somewhat
automated way to do that:
```sh
pan_data="$HOME/.local/share/pandoc/templates"
mkdir -p "$pan_data"
curl -fL "https://github.com/a-vrma/jottings/raw/master/test/jottings.css" -o "${pan_data}/jottings.css
curl -fL "https://github.com/a-vrma/jottings/raw/master/jottings.html" |
sed "s|{{jottings}}|${pan_data}/jottings.css|" >"${pan_data}/jottings.html"
```
You can also copy the content of `jottings.css` to `jottings.html` inside a `style` element
if you want fully standalone files.
## Features
- System font stack.
- Styling for every feature of pandoc's markdown.
- Styles table of contents if used with `--toc`.
## Todo
- View end of table of contents.
## License
MIT/Expat. Includes [normalize.css](https://github.com/necolas/normalize.css)
which is under the same license. See LICENSE file for details.