aboutsummaryrefslogtreecommitdiff
path: root/_extensions
diff options
context:
space:
mode:
authorgsabin <sabinghimire071@gmail.com>2025-02-24 22:06:13 +0100
committergsabin <sabinghimire071@gmail.com>2025-02-24 22:06:13 +0100
commitf6d749082c76b26e72dafd9b02d8a95260a03019 (patch)
tree7a57ad6ffcb4418fbe69204dafd353d9eb83abbd /_extensions
parent126dedf870753aa900fa166047089abbdf7233b1 (diff)
deleted examples from repository
Diffstat (limited to '_extensions')
-rw-r--r--_extensions/Example/example.md7
-rw-r--r--_extensions/Example/quartoExample.qmd12
-rw-r--r--_extensions/Example/quartoFilterDraft.lua14
-rw-r--r--_extensions/Example/semantic.lua30
4 files changed, 0 insertions, 63 deletions
diff --git a/_extensions/Example/example.md b/_extensions/Example/example.md
deleted file mode 100644
index bf4efa3..0000000
--- a/_extensions/Example/example.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Example Markdown File
-
-This is a **bold** text and *italic* text.
-
-## Another Section
-- List item 1
-- List item 2
diff --git a/_extensions/Example/quartoExample.qmd b/_extensions/Example/quartoExample.qmd
deleted file mode 100644
index 577985c..0000000
--- a/_extensions/Example/quartoExample.qmd
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: "My Semantic Document"
-format: html
-filters:
- - quartoFilterDraft.lua
----
-
-# My Semantic Document
-
-This is a sample document with **bold** text and *italic* text.
-
-[@citation1]: This is a citation with a purpose of opposition. \ No newline at end of file
diff --git a/_extensions/Example/quartoFilterDraft.lua b/_extensions/Example/quartoFilterDraft.lua
deleted file mode 100644
index e084876..0000000
--- a/_extensions/Example/quartoFilterDraft.lua
+++ /dev/null
@@ -1,14 +0,0 @@
-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
diff --git a/_extensions/Example/semantic.lua b/_extensions/Example/semantic.lua
deleted file mode 100644
index fdf9c15..0000000
--- a/_extensions/Example/semantic.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Lua script to handle Markdown-style bold and italic annotations
-
--- Sample Markdown content (string format)
-local markdown_content = [[
-# Text Formatting Example
-
-This is a sample Markdown document.
-
-Here is some **bold text** and some *italic text*.
-
-You can also combine **bold and *italic* text**.
-]]
-
--- Function to process bold and italic annotations (e.g., **bold** or *italic*)
-function process_annotations(content)
- -- Replace bold (e.g., **bold**) with <strong>HTML tag
- content = content:gsub("%*%*(.-)%*%*", "<strong>%1</strong>")
-
- -- Replace italic (e.g., *italic*) with <em>HTML tag
- content = content:gsub("%*(.-)%*", "<em>%1</em>")
-
- return content
-end
-
--- Process the Markdown content to add HTML semantic annotations
-local processed_content = process_annotations(markdown_content)
-
--- Output the processed content with HTML formatting
-print("Processed Markdown Content:")
-print(processed_content)