FossilRepo

Add markdown footnotes, definition lists, attr_list extensions - Footnotes: [^1] references and [^1]: definitions render properly - Definition lists: term + definition blocks - Attribute lists: {#id .class} on elements - Fixes "Signing and verification of artifacts" wiki page footnotes

lmata 2026-04-07 00:45 trunk
Commit c36c317aeaff2c2702b8bac1c2b79ff25eb0b535d4d38c2d0cb332c8386f57ce
1 file changed +1 -1
+1 -1
--- fossil/views.py
+++ fossil/views.py
@@ -41,11 +41,11 @@
4141
path = "/" + base_path + path
4242
return f"[{text}]({path})"
4343
4444
content = re.sub(r"\[([^\]\|]+?)\s*\|\s*([^\]]+?)\]", _fossil_to_md_link, content)
4545
content = re.sub(r"<verbatim>(.*?)</verbatim>", r"```\n\1\n```", content, flags=re.DOTALL)
46
- html = md.markdown(content, extensions=["fenced_code", "tables", "toc"])
46
+ html = md.markdown(content, extensions=["fenced_code", "tables", "toc", "footnotes", "def_list", "attr_list"])
4747
4848
# Post-process: render pikchr fenced code blocks to SVG
4949
def _render_pikchr_md(m):
5050
try:
5151
from fossil.cli import FossilCLI
5252
--- fossil/views.py
+++ fossil/views.py
@@ -41,11 +41,11 @@
41 path = "/" + base_path + path
42 return f"[{text}]({path})"
43
44 content = re.sub(r"\[([^\]\|]+?)\s*\|\s*([^\]]+?)\]", _fossil_to_md_link, content)
45 content = re.sub(r"<verbatim>(.*?)</verbatim>", r"```\n\1\n```", content, flags=re.DOTALL)
46 html = md.markdown(content, extensions=["fenced_code", "tables", "toc"])
47
48 # Post-process: render pikchr fenced code blocks to SVG
49 def _render_pikchr_md(m):
50 try:
51 from fossil.cli import FossilCLI
52
--- fossil/views.py
+++ fossil/views.py
@@ -41,11 +41,11 @@
41 path = "/" + base_path + path
42 return f"[{text}]({path})"
43
44 content = re.sub(r"\[([^\]\|]+?)\s*\|\s*([^\]]+?)\]", _fossil_to_md_link, content)
45 content = re.sub(r"<verbatim>(.*?)</verbatim>", r"```\n\1\n```", content, flags=re.DOTALL)
46 html = md.markdown(content, extensions=["fenced_code", "tables", "toc", "footnotes", "def_list", "attr_list"])
47
48 # Post-process: render pikchr fenced code blocks to SVG
49 def _render_pikchr_md(m):
50 try:
51 from fossil.cli import FossilCLI
52

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button