Skip to content

Markdown syntax

Doctor supports more than the basic markdown syntax. Which syntax gets rendered depends on who renders your content: SharePoint or Doctor.

By default, Doctor hands your markdown over to the SharePoint markdown web part, and SharePoint renders it. That web part only supports the basic syntax: headings, emphasis, paragraphs, code, links, images, lists and tables. Anything beyond that is shown as plain text, and Doctor cannot change that.

To use the extended syntax, you have to let Doctor render the HTML by enabling the allowHtml setting:

{
"markdown": {
"allowHtml": true
}
}

Once Doctor renders the HTML, the following syntax is available on top of the basic markdown syntax. This is enabled by default and can be turned off with the markdown.extended setting.

Emoji shortcodes are replaced with the actual emoji.

:pushpin: Purpose and :pencil2: Definition
This is ==highlighted== text.
Here is a footnote reference[^1]
[^1]: And here is the footnote itself.
Term
: The definition of the term
- [x] Write the documentation
- [ ] Publish the documentation

To turn the extended syntax off and keep the previous rendering behaviour:

{
"markdown": {
"allowHtml": true,
"extended": false
}
}

Math is not supported. The SharePoint markdown web part strips the MathML elements from the page and keeps only their text, so a formula ends up on the page as unreadable text instead of as a formula. The regular KaTeX HTML output is no alternative either, as it depends on a stylesheet and web fonts that cannot be shipped to a SharePoint page.

Your $...$ and $$...$$ expressions are left untouched, so they show up as you wrote them.

Syntax SharePoint Doctor (allowHtml: true)
Headings Yes Yes
Emphasis Yes Yes
Lists Yes Yes
Links and images Yes Yes
Tables Yes Yes
Code blocks Yes Yes, with syntax highlighting
Table of contents No Yes, via the toc shortcode
Inline HTML No Yes
Shortcodes No Yes
Emoji No Yes, with extended
Highlighted text No Yes, with extended
Footnotes No Yes, with extended
Definition lists No Yes, with extended
Task lists No Yes, with extended
Math and LaTeX No No
Visitors