diff --git a/md4tj_parse.el b/md4tj_parse.el index a9d896f..c896d35 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -91,6 +91,8 @@ (md4tj-begin-tag "p" (list (list "id" "lastupdated"))) "Last updated: " (current-time-string) (md4tj-end-tag "p"))) + ((string-match "^@@DIV" line) (md4tj-begin-tag "div" (list (list "class" (nth 1 (split-string line)))))) + ((string-match "^@@ENDDIV" line) (md4tj-end-tag "div")) ((and (string-match "^$$.*$$" line) (eq (nth 1 state) 'normal)) ;; LaTeX formula (shell-command (concat "./pnglatex" " -d 300" diff --git a/test_css.css b/test_css.css index 8c42a07..4f47480 100644 --- a/test_css.css +++ b/test_css.css @@ -17,3 +17,7 @@ video { width: 5%; height: auto; } + +.monospace-text { + font-family: monospace; +}; diff --git a/test_file.html b/test_file.html index 825aa30..a0965f7 100644 --- a/test_file.html +++ b/test_file.html @@ -3,6 +3,8 @@
+ +Dungeon Crawl Stone Soup - My favorite FOSS roguelike (Yes, I know the greatest roguelike of all time is NetHack, I don't care).
-Last updated: Wed Jan 4 14:56:23 2023
+ +This is a div that has monospace text.
+Last updated: Wed Jan 4 15:08:50 2023