diff --git a/md4tj_parse.el b/md4tj_parse.el index 03670ea..94f431a 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -87,7 +87,10 @@ (let ((cleanline (md4tj-clean-multiline line))) ;; If this is a signal to include another file (cond ((string-match "^@@INCLUDE" line) (md4tj-parse-to-string (nth 1 (split-string line)))) - ((string-match "^@@LASTUPDATED" line) (concat "Last updated: " (current-time-string))) + ((string-match "^@@LASTUPDATED" line) (concat + (md4tj-begin-tag "p" (list (list "id" "lastupdated"))) + "Last updated: " (current-time-string) + (md4tj-end-tag "p"))) ;; If this is some other signal, ignore ((string-match "^@@" line) "") ;; Otherwise, process as normal diff --git a/test_css.css b/test_css.css index f783083..bcbac00 100644 --- a/test_css.css +++ b/test_css.css @@ -3,4 +3,9 @@ body {background-color: #00ff00;} video { width: 100%; height: auto; -}; +} + +#lastupdated { + outline: dashed 1px black; + text-align: center; +} diff --git a/test_file.html b/test_file.html index 86c9590..b40edf2 100644 --- a/test_file.html +++ b/test_file.html @@ -70,6 +70,6 @@ int main() {

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 13:32:42 2023 +

Last updated: Wed Jan 4 13:40:47 2023

\ No newline at end of file