diff options
| author | gsabin <sabinghimire071@gmail.com> | 2025-02-17 12:27:49 +0100 |
|---|---|---|
| committer | gsabin <sabinghimire071@gmail.com> | 2025-02-17 12:27:49 +0100 |
| commit | e181acb63c42a51b92ec3f0189d1b06c93207361 (patch) | |
| tree | 33434702fbb0fabf6baf87e516b699b94208fca2 | |
| parent | 019d91ddfbe63c746f0d51f92f0cece0dcd50b85 (diff) | |
added examples
| -rw-r--r-- | _extensions/Example/example.md | 7 | ||||
| -rw-r--r-- | _extensions/Example/quartoFilterDraft.lua | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/_extensions/Example/example.md b/_extensions/Example/example.md index e69de29..bf4efa3 100644 --- a/_extensions/Example/example.md +++ b/_extensions/Example/example.md @@ -0,0 +1,7 @@ +# Example Markdown File + +This is a **bold** text and *italic* text. + +## Another Section +- List item 1 +- List item 2 diff --git a/_extensions/Example/quartoFilterDraft.lua b/_extensions/Example/quartoFilterDraft.lua index e69de29..e084876 100644 --- a/_extensions/Example/quartoFilterDraft.lua +++ b/_extensions/Example/quartoFilterDraft.lua @@ -0,0 +1,14 @@ +function Pandoc(doc) + -- This function will process the entire document + for _, el in pairs(doc.blocks) do + if el.t == "Para" then + for _, inline in pairs(el.content) do + if inline.t == "Str" and inline.text:match("%[@%a+%]") then + -- This is a simple detection for semantic annotations + print("Found semantic annotation: " .. inline.text) + end + end + end + end + return doc +end
\ No newline at end of file |
