Administrator Markdown Formatting Test Only file_name
This file contains no report, patient, or clinical content. It exists only to test Markdown formatting and rendering behaviour expected to succeed.
The first heading intentionally contains bold text, italic text, and a literal underscore so the browser title can also be checked as plain text.
Heading 1 Test
Heading 2 Test
Heading 3 Test
Heading 4 Test
Heading 5 Test
Heading 6 Test
Heading and Fragment Edge-Case Tests
A_B_C
This fragment link should target the literal-underscore heading above: Jump to A_B_C.
Formatted Heading Test
This fragment link should target the formatted heading above using its visible text: Jump to formatted heading.
Duplicate Heading
Duplicate Heading
These fragment links should target the first and second duplicate headings respectively: first duplicate and second duplicate.
Paragraph and Inline Formatting Tests
Normal paragraph text.
This contains bold text.
This contains italic text using asterisks.
This contains italic text using underscores.
This contains ordinary text before bold text and ordinary text after it.
This contains ordinary text before italic text and ordinary text after it.
This contains ordinary text before italic text and ordinary text after it.
This contains bold text with nested italic text inside it.
This contains italic text with nested bold text inside it.
This line contains a literal underscore in a filename: file_name_with_parts.txt.
This line contains a literal underscore pattern that should stay literal: A_B_C.
This line contains an unclosed bold marker that should stay literal: **unclosed bold.
This line contains an unclosed italic marker that should stay literal: *unclosed italic.
This line contains an underscore marker that should stay literal inside a word: one_two_three.
This line tests an escaped asterisk marker that should stay literal: *not italic*.
This line tests an escaped underscore marker that should stay literal: _not italic_.
This line tests an escaped backslash that should display as one literal backslash: \.
This line tests XML and HTML special characters as ordinary text: < > & " '.
This line tests raw HTML-looking text, which should display literally rather than execute: <script>alert("test")</script>.
This line tests common Unicode characters as ordinary text: → ← ↑ ↓ ▲ • – —.
Multi-Line Paragraph Test
This is the first source line of one paragraph. This is the second source line of the same paragraph. This is the third source line of the same paragraph.
This is a separate paragraph after an empty line.
Markdown Link Tests
This is a simple Markdown link: Example.
This link label contains bold text: Bold link label.
This link label contains italic text: Italic link label.
This link label is itself a visible URL and should still create only one link: https://example.com.
This destination contains balanced parentheses: Balanced parentheses.
This destination contains nested parentheses: Nested parentheses.
This local destination contains parentheses: Local parentheses.
This destination contains an escaped closing parenthesis: Escaped parenthesis.
This label contains an escaped closing square bracket before more text: Label with escaped ] bracket.
This is an allowed mail link: Mail example.
This is an allowed fragment link: Fragment example.
This is an allowed root-relative link: Root-relative example.
This is an allowed current-directory link: Current-directory example.
This is an allowed parent-directory link: Parent-directory example.
Bare URL Tests
Simple bare URL: https://example.com/path
Bare URL followed by sentence punctuation: https://example.com/path.
Bare URL inside parentheses: (https://example.com/path).
Bare URL inside double quotes: "https://example.com/path"
Bare URL with balanced parentheses in the URL: https://example.com/Foo_(bar)
Bare URL with query and fragment text: https://example.com/path?one=1&two=2#section
HTTP is also allowed: http://example.com/path
Bullet List Tests
- Bullet item 1
- Bullet item using an asterisk marker
- Bullet item using a plus marker
- Bullet item with bold text
- Bullet item with italic text using asterisks
- Bullet item with italic text using underscores
- Bullet item with a Markdown link
- Nested bullet item
- Nested bullet item using one tab
- Nested bullet item with bold text
- Deeper nested bullet item
Normal paragraph after the bullet list.
Numbered List Tests
- Numbered item 1
- Numbered item with bold text
- Numbered item with italic text using asterisks
- Numbered item with italic text using underscores
- Numbered item with a Markdown link
- Nested numbered item
- Nested numbered item with bold text
- Deeper nested numbered item
Normal paragraph after the numbered list.
Mixed List Tests
- Bullet parent
- Numbered child
- Numbered child with italic text
- Second bullet parent
- Bullet child
- Numbered grandchild
- Bullet child
- Numbered parent
- Bullet child
- Bullet child with bold text
- Second numbered parent
Normal paragraph after the mixed lists.
Four-Space Preformatted Block Test
PRE line 1
PRE line 2 with extra indentation
PRE line 3 with more indentation
Characters inside this block should remain literal: **bold** _italic_ <tag> https://example.com/
Normal paragraph after the four-space preformatted block.
Fenced Preformatted Block Tests
Fence length 3.
Markdown-looking text should remain literal here:
**bold**
_italic_
[link](https://example.com/)
<script>alert("test")</script>
Fence length 4.
A shorter run of three backticks inside this block should remain literal:
```
Still inside the four-backtick fence.
Backtick fence length 3 with a longer closing fence.
The closing fence below has four backticks and should still close this block.
~~~~
The tilde fence-looking line above should remain literal inside this backtick block.
Tilde Fence Tests
Tilde fence length 3.
Markdown-looking text should remain literal here:
**bold**
_italic_
[link](https://example.com/)
<script>alert("test")</script>
A backtick fence-looking line should remain literal here:
```
Tilde fence length 4.
A shorter run of three tildes inside this block should remain literal:
~~~
Still inside the four-tilde fence.
Tilde fence length 3 with a longer closing fence.
The closing fence below has four tildes and should still close this block.
Normal paragraph after the fenced blocks.
Empty-Line and Section Transition Test
Paragraph before an empty line.
Paragraph after an empty line.
Heading After Paragraph
Paragraph immediately following a heading.
- List after a paragraph
- Second list item
Paragraph immediately following a list.
Preformatted block after a paragraph.
Paragraph immediately following a preformatted block.
End of Test
If this file renders without build errors, visually inspect the HTML and DOCX outputs for the supported behaviour that applies to each format: headings and fragment targets, duplicate heading targets, multi-line paragraph grouping, inline emphasis, literal and escaped emphasis markers, special-character escaping, Unicode characters, Markdown links, bare URLs, all supported unordered-list markers, list numbering and nesting, tab-based list nesting, mixed list types, preformatted blocks, backtick and tilde fenced blocks, longer valid closing fences, mixed fence characters remaining literal, literal code-block content, and paragraph/block transitions. For HTML, also inspect browser title text.
This file is the shared successful rendering baseline for the current HTML and DOCX exporters. Format-specific presentation may differ, but the supported Markdown interpretation should remain aligned where the behaviour has a meaningful equivalent in both formats.