summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-05-21 18:14:37 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-05-21 18:14:37 -0600
commitb53928cf4f703b8b63388f17614a13cbe6f1b619 (patch)
tree9f5e7034d147030cb1307be648b7249a04be09a9
parent8a0b1d2d9f9629e4a186549b134ebd6b80a5d71b (diff)
Add new extensions for ^ and ~ syntaxv0.7.2
-rw-r--r--ChangeLog5
-rw-r--r--README.md4
-rw-r--r--requirements.txt13
-rw-r--r--src/pyssg/md_parser.py4
4 files changed, 19 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 710831a..d99ef27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
CHANGES
=======
+v0.7.1
+------
+
+* add proper var expansion from config file
+
v0.7.0
------
diff --git a/README.md b/README.md
index 3aee523..dfa0290 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,7 @@ Inspired (initially) by Roman Zolotarev's [`ssg5`](https://rgz.ee/bin/ssg5) and
- [ ] More complex directory structure to support multiple subdomains and different types of pages.
- [ ] Option/change to using an SQL database instead of the custom solution.
- [x] Checksum checking because the timestamp of the file is not enough.
+- [ ] Better management of the extensions.
### Markdown features
@@ -41,6 +42,9 @@ This program uses the base [`markdown` syntax](https://daringfireball.net/projec
- [yafg - Yet Another Figure Generator](https://git.sr.ht/~ferruck/yafg)
- [markdown.highlight](https://github.com/ribalba/markdown.highlight)
- [Markdown Checklist](https://github.com/FND/markdown-checklist)
+- [PyMdown Extensions](https://facelessuser.github.io/pymdown-extensions/)
+ - [Caret](https://facelessuser.github.io/pymdown-extensions/extensions/caret/)
+ - [Tilde](https://facelessuser.github.io/pymdown-extensions/extensions/tilde/)
## Installation
diff --git a/requirements.txt b/requirements.txt
index 5a026f6..8cc9c23 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,7 @@
-Jinja2==3.1.1
-Markdown==3.3.6
-markdown-checklist==0.4.3
-MarkdownHighlight==0.1.3
-MarkupSafe==2.1.1
-yafg==0.3
+Jinja2>=3.1.1
+Markdown>=3.3.6
+markdown-checklist>=0.4.3
+MarkdownHighlight>=0.1.3
+MarkupSafe>=2.1.1
+yafg>=0.3
+pymdown-extensions>=9.4
diff --git a/src/pyssg/md_parser.py b/src/pyssg/md_parser.py
index a516f60..8148536 100644
--- a/src/pyssg/md_parser.py
+++ b/src/pyssg/md_parser.py
@@ -31,7 +31,9 @@ def _get_md_obj() -> Markdown:
figureNumberClass="number",
figureNumberText="Figure"),
HighlightExtension(),
- ChecklistExtension()]
+ ChecklistExtension(),
+ 'pymdownx.caret',
+ 'pymdownx.tilde']
log.debug('list of md extensions: (%s)',
', '.join([e if isinstance(e, str) else type(e).__name__
for e in exts]))