diff options
| author | gsabin <sabinghimire071@gmail.com> | 2025-02-24 22:06:13 +0100 |
|---|---|---|
| committer | gsabin <sabinghimire071@gmail.com> | 2025-02-24 22:06:13 +0100 |
| commit | f6d749082c76b26e72dafd9b02d8a95260a03019 (patch) | |
| tree | 7a57ad6ffcb4418fbe69204dafd353d9eb83abbd /_extensions/Example/semantic.lua | |
| parent | 126dedf870753aa900fa166047089abbdf7233b1 (diff) | |
deleted examples from repository
Diffstat (limited to '_extensions/Example/semantic.lua')
| -rw-r--r-- | _extensions/Example/semantic.lua | 30 |
1 files changed, 0 insertions, 30 deletions
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) |
