Markdown Renderer Test Document
This is a sample document to test all currently supported markdown elements in the static renderer.
Paragraphs
This is a simple paragraph with some text. It should wrap properly at the configured width. Let's add more text to make it longer and see how the wrapping behaves with different content.
Here is another paragraph after a blank line. Paragraphs should have proper spacing between them.
Inline Formatting
This paragraph has bold text and italic text and bold italic text mixed together.
You can also use underscores for bold and underscores for italic though asterisks are more common.
Here is some inline code within a sentence. You can use it for function_names() or variable_names.
Tables and Blockquotes
| Just | A couple | Of | Headers |
|---|---|---|---|
| some | values | with | inline formatting |
| Путин -- хуйло! | Слава Україні! | Trump is a moral degenerate | with no sense of decency |
Microsoft is a parasite who pretends to embrace open source.
We also have divs
And we support code blocks in them too!
echo "Look, ma, a code block!"
echo $?
Links and Images
Visit the Lilush repository for more information.
Here's a link with a title: Example Site.
Multiple links in one line: First and Second and Third.
Images work similarly: 
Headings
Level 3 Heading
Some content under a level 3 heading.
Level 4 Heading
Content under level 4.
Level 5 Heading
Content under level 5.
Level 6 Heading
The deepest heading level.
Code Blocks
Here's a simple code block without a language:
plain code block
no syntax highlighting
just monospace text
And here's a code block with a language specified:
-- Lua code example
local function greet(name)
print("Hello, " .. name .. "!")
end
greet("World")
Another example with Python:
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
for i in range(10):
print(fibonacci(i))
Code blocks preserve indentation:
indented line (4 spaces)
more indented (8 spaces)
no indent
Thematic Breaks
Content before the break.
Content after the first break.
Content after the second break.
Content after the third break.
Mixed Content
Code in Context
When writing Lua code, you might use the require() function to load modules:
local markdown = require("markdown")
local result = markdown.render(input, { width = 80 })
print(result)
The markdown.render() function accepts options including:
width- the wrap widthindent- global indentationtss- custom stylingTSS is your friend
Also it does not rape children. Nor adults.
Not even animals
Unlike some presidents out there...
And now back to supported options :)
Ordered list:
Always remember
The fifth
Of November!
Links with Emphasis
Check out this bold link or this italic link.