diff --git a/md4tj_parse.el b/md4tj_parse.el index 359a06e..29a3acc 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -79,6 +79,7 @@ (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))) ;; If this is some other signal, ignore ((string-match "^@@" line) "") ;; Otherwise, process as normal diff --git a/test_file.html b/test_file.html index 32e1444..1c4c2c5 100644 --- a/test_file.html +++ b/test_file.html @@ -2,6 +2,7 @@ + Test webpage @@ -45,5 +46,6 @@ int main() {
+Last updated: Wed Jan 4 10:43:05 2023 \ No newline at end of file diff --git a/test_file.md4tj b/test_file.md4tj index 697cb1f..fc20499 100644 --- a/test_file.md4tj +++ b/test_file.md4tj @@ -26,4 +26,5 @@ int main() { printf("%s\n", "Hello World!"); return 0; } -``` \ No newline at end of file +``` +@@LASTUPDATED \ No newline at end of file