diff --git a/plugins/smolnet.py b/plugins/smolnet.py index 9a7b513..0937e23 100644 --- a/plugins/smolnet.py +++ b/plugins/smolnet.py @@ -31,8 +31,6 @@ setting, and every setting has a default, so a site can switch it on with just Notes section; off by default since not every site using this plugin has been checked for footnotes - SMOLNET_CALLOUTS {} callout kind -> label, for `> [!kind]` - blocks; see rewrite_callouts Every run of links here is a **Markdown list**, which is what each format needs: Mews Profile reads a dated link as a feed entry only when it starts a list item @@ -122,11 +120,6 @@ FOOTNOTE_REF = re.compile(r"\[\^([^\]]+)\]") # citation it was meant to carry. LINKREF_DEF = re.compile(r"^\[(\d+)\]:", re.MULTILINE) -# The opening line of a GitHub/Obsidian-style callout, "> [!kind] title". -# The trailing newline is part of the match, so a marker with no label can be -# dropped whole instead of leaving the quote to open on a blank line. -CALLOUT = re.compile(r"^([ ]{0,3}>[ ]?)\[!(\w+)\][ \t]*(.*)\n?", re.MULTILINE) - def rot13(text): """The obfuscation used on addresses in the HTML templates.""" @@ -329,36 +322,6 @@ def rewrite_footnotes(text, labels, warn): return body.rstrip() + "\n\n" + "\n".join(notes) + "\n" -def rewrite_callouts(text, kinds): - """Turn a `> [!kind]` marker into a bold label line, leaving the rest of - the passage an ordinary blockquote. - - The HTML build renders these as boxes (an