Markdown syntax

DocInsight supports standard Markdown syntax and common GitHub Flavored Markdown extensions. This topic covers the syntax used most often in product documentation; the other topics in this section describe DocInsight-specific authoring features.

Text and emphasis

Separate paragraphs with a blank line. Use a trailing backslash or two trailing spaces when you need a hard line break inside a paragraph.

Source

markdown
This is one paragraph with _emphasis_, **strong emphasis**,
~~strikethrough~~, and `inline code`.

This is another paragraph.\
This line starts after a hard line break.

Result

This is one paragraph with emphasis, strong emphasis, strikethrough, and inline code.

This is another paragraph.
This line starts after a hard line break.

Headings

Use ATX headings with one to six # characters:

markdown
# Topic title

## Main section

### Subsection

Use one H1 as the topic title. Use H2 through H6 to organize sections within the topic. See Markdown topics for DocInsight title behavior.

Lists

Use hyphens for unordered lists and numbers for ordered lists:

markdown
- Markdown topics
- Delphi API reference
- Project assets

1. Check the documentation.
2. Build the selected target.
3. Open the generated output.

Indent a list item to create a nested list. Use task-list markers when items have a checked state:

Source

markdown
- [x] Configure the project
- [ ] Write the documentation
- [ ] Build the output

Result

  • Configure the project

  • Write the documentation

  • Build the output

Block quotes

Prefix quoted content with >:

Source

markdown
> Generated files should not be edited by hand.

Result

Generated files should not be edited by hand.

Use a callout instead when the content is a note, tip, important notice, warning, or danger message rather than a quotation.

Tables

Use a header row and delimiter row to create a table:

Source

markdown
| Field     | Purpose                       |
| :-------- | :---------------------------- |
| `root`    | Markdown content root.        |
| `exclude` | Files removed from discovery. |

Result

Field

Purpose

root

Markdown content root.

exclude

Files removed from discovery.

In the delimiter row, :--- aligns a column left, ---: aligns it right, and :---: centers it.

Thematic breaks

Use three or more hyphens on a line by themselves to separate parts of a topic:

Source

markdown
---

Result


Comments

Use an HTML comment to leave information for authors without adding it to the generated HTML:

Source

markdown
<!-- Explain why this section is intentionally empty. -->

Result

No visible output is generated.

Comments are not private

DocInsight omits HTML comments from generated HTML, but other Markdown renderers, preprocessors, and publishing tools may preserve or expose them differently. The comments also remain visible in the Markdown source, repository, source packages, and backups. Do not use them for confidential information, credentials, license keys, or private source code.