v2.1.0
Torillic: A Typora theme which styles your editor to look like the official Dungeons & Dragons 5e content books.
Fixes
- Now avoids breaking after a line in italics if it's immediately below a heading, to avoid e.g. a column ending with a name and their race/alignment/pronouns, with their image/bio on the next column
Enhancements
- Torillic has crossed the platform divide! I've moved the core stuff to a generic CSS file which you can use in any HTML project, all the Typora specific stuff is now in a Typora specific folder.
- I've also added a Python package for sphinx as I'm familiar with it (being a Python dev). Please do feel free to put in a pull request with implementations for other systems!
- Torillic now comes packaged with some 16x16px images of D&D coins (copper, silver, electrum, gold), so you can easily add inline coin icons like so:
This item costs ![](silver) 2 ![](copper) 3
or, in HTML...
<p>This item costs <img src="silver" /> 2 <img src="copper" /> 3</p>
- If you want to force a column / page break, I've added some classes for doing so (
.break-column-before
,.break-page-before
,.break-column-after
and.break-page-after
), you can also use an empty h1 for a page break and and empty h3 for a column break (this works in Typora!)
To install
General HTML
Download an extract base.zip
, copy it to your HTML project, then either import it in your .css
file:
@import url("path/to/extracted/folder/torillic.css")
Or link it in your .html
file:
<link rel="stylesheet" href="path/to/extracted/folder/torillic.css" />
Typora
Download and extract typora.zip
, then copy the extracted files to your Typora theme directory.
Sphinx
Download and extract sphinx.zip
, then install it as an "editable" using pip:
pip install -e "path/to/extracted/folder"
Then, in your Sphinx project's conf.py
file, add:
extensions = [
# whatever other extensions you're using...
"sphinx_torillic",
]
html_theme = "sphinx_torillic"
Full Changelog: v2.0.3...v2.1.0