aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-10-24 18:42:09 -0500
committerraven <citrons@mondecitronne.com>2026-10-24 18:42:26 -0500
commit9afddccc5163170ef09a9449098ebdc485fb8212 (patch)
tree7d54e3a9d0e6134b0c053e3dacfa14e2ec0a0cc1
parent43faa97996efcc82613e99a5ba865976df3cb6de (diff)
add <sitelen> markdown element
things in this element are rendered in the nasin nanpa font and are converted into SP using ligatures
-rw-r--r--apioforum/mdrender.py1
-rw-r--r--apioforum/static/style.css4
2 files changed, 5 insertions, 0 deletions
diff --git a/apioforum/mdrender.py b/apioforum/mdrender.py
index 886000c..0352be5 100644
--- a/apioforum/mdrender.py
+++ b/apioforum/mdrender.py
@@ -17,6 +17,7 @@ allowed_tags = [
'img',
'marquee',
'pulsate',
+ 'sitelen',
'sup','sub',
'table','thead','tbody','tr','th','td',
'details','summary',
diff --git a/apioforum/static/style.css b/apioforum/static/style.css
index 3f07d9e..04586b3 100644
--- a/apioforum/static/style.css
+++ b/apioforum/static/style.css
@@ -514,6 +514,10 @@ textarea {
font-family: monospace, nasin-nanpa;
}
+sitelen {
+ font-family: nasin-nanpa;
+}
+
@font-face {
font-family: nasin-nanpa;
src: local(nasin-nanpa), url("nasin-nanpa.otf") format("opentype");