summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-07-15 23:44:45 +0200
committerBotond Hende <nettingman@gmail.com>2024-07-15 23:59:14 +0200
commit76de6af40b80575019425607b3a9c2e126aaa332 (patch)
treec537b71cdabf1e11df6b6471bc4e8c90a1a57a9c
parentd0a873b8be0d6dd19f1c424782789b27a3649c45 (diff)
added documents for extensions
-rw-r--r--extendedimage.py11
-rw-r--r--headinginjector.py6
-rw-r--r--strikethrough.py6
3 files changed, 23 insertions, 0 deletions
diff --git a/extendedimage.py b/extendedimage.py
index b62f100..27c2668 100644
--- a/extendedimage.py
+++ b/extendedimage.py
@@ -1,3 +1,14 @@
+"""
+Like the standard ![alt text](src.img title_text) image format in Markdown, but with two extra parameters.
+
+Usage:
+![alt text](src.img title_text href figcapture)
+href: if not empty, encapsulates image in <a> with the specified url
+figcapture: if not empty, encapsulates image in a <figure> with the specified figcapture
+
+ALL PARAMETERS ARE MANDATORY!
+Parameters can be encapsulated in double-quotes. Use "" for empty parameter.
+"""
from marko import inline
from marko.helpers import MarkoExtension
diff --git a/headinginjector.py b/headinginjector.py
index 50ef606..cb1b5ca 100644
--- a/headinginjector.py
+++ b/headinginjector.py
@@ -1,3 +1,9 @@
+"""
+Prefixes headers with the specified string.
+
+Usage:
+MyExtension = get_heading_injector(prefix)
+"""
import marko.block
from marko.helpers import MarkoExtension
diff --git a/strikethrough.py b/strikethrough.py
index a3f8c50..d0342fc 100644
--- a/strikethrough.py
+++ b/strikethrough.py
@@ -1,3 +1,9 @@
+"""
+Encapsulates text in <del> html tag, which usually displayed as strikethrough text.
+
+Usage:
+~~my text~~
+"""
from marko import inline
from marko.helpers import MarkoExtension