1
0

Compare commits

...

4 Commits

Author SHA1 Message Date
44225724f2
Replace spaces with tabs in blog post 2021-03-30 01:58:00 +00:00
33f581ad10
Allow tabs in fenced code blocks 2021-03-30 01:57:42 +00:00
256566a141
Enable table of contents extension 2021-03-30 01:32:35 +00:00
726d9418b9
Improve <pre> styling
Another feature ripped off from Drew DeVault's website.
2021-03-30 00:40:19 +00:00
3 changed files with 11 additions and 6 deletions

View File

@ -185,10 +185,10 @@ of how to configure Meson based on USE flags, so I will blatantly copy that.
``` ```
src_configure() {{ src_configure() {{
local emesonargs=( local emesonargs=(
$(meson_feature man man-pages) $(meson_feature man man-pages)
) )
meson_src_configure meson_src_configure
}} }}
``` ```

View File

@ -3,9 +3,10 @@
import sys import sys
import markdown import markdown
from template import template from template import template
from pymdownx.superfences import SuperFencesCodeExtension
def main(): def main():
md = markdown.Markdown(extensions = ["meta", "extra"]) md = markdown.Markdown(extensions = ["meta", "extra", "toc", SuperFencesCodeExtension(preserve_tabs=True)])
with open(sys.argv[1], "r", encoding="utf-8") as file_in: with open(sys.argv[1], "r", encoding="utf-8") as file_in:
html = md.convert(file_in.read()) html = md.convert(file_in.read())
output = template(html, sys.argv[2], ".html", md.Meta) if "template" in md.Meta else html output = template(html, sys.argv[2], ".html", md.Meta) if "template" in md.Meta else html

View File

@ -172,7 +172,11 @@ div.block:first-of-type, div.block-small {
} }
pre { pre {
white-space: pre-wrap; line-height: 1.5;
font-size: 14px;
background-color: #EEEEEE;
padding: 6px;
overflow: auto;
} }
div.articles { div.articles {