0.8.8
raw

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

JustA coupleOfHeaders
somevalueswithinline formatting
Путин -- хуйло!Слава Україні!Trump is a moral degeneratewith 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: Alt text for image

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 width

  • indent - global indentation

  • tss - custom styling

    • TSS 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:

  1. Always remember

  2. The fifth

  3. Of November!

Links with Emphasis

Check out this bold link or this italic link.