-
-
Notifications
You must be signed in to change notification settings - Fork 319
Formatting Annotations
⚠️ WarningThis wiki has been replaced by the wiki on our website. This wiki will be removed in the future.
This page explains how you can format your annotations to have special appearances.
Annotations support most of the markdown syntax.
You can define headings in your annotation using #
, with one appearing for each level of heading. So #
is an <h1>
and ###
is an <h3>
. The limit is ######
(6).
Example
# Heading
## Heading 2
Text surrounded in **
will be bolded.
Example
**Bold text!**
Text surrounded in *
will be italicized.
Example
*italicized text*
Text surrounded in ~~
will be struck through.
Example
Three strikes and you're ~~in~~ out
To create an ordered list, just start counting with each item on a new line. Each item should start with a number followed by a period and then a space.
Example
1. Item 1
2. Item 2
To create an unordered list, place a *
or -
before each list element, with each list element appearing on a new line.
Example
- Item 1
- Item 2
Text beginning with a >
will be turned into a blockquote. This will result in it being indented.
Example
> My quoted text
To make a small piece of code stand out, place it in backticks `
.
Example
`myVariable`
To insert a larger snippet of Lua code, you can start and end a code block with 3 backticks ```
.
Example
```
function()
print("Hello!")
end
```
To add a horizontal divide/rule, use ***
or ---
on its own line.
Example
Something
---
divided
To add a link, place the alt text in square brackets with the url immediately following in parentheses.
Example
[GitHub Repository](https://github.com/LuaLS/lua-language-server)
To add an image, place a !
, followed by the alt text in square brackets, with the url immediately following in parentheses.
Example
![Huskies in the snow](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Huskiesatrest.jpg/2880px-Huskiesatrest.jpg)
There are many ways to add newlines to your annotations.
The most bulletproof way is to simply add an extra line of just ---
, although this functions like a paragraph break, not a newline.
The below methods can be added to the end of a line:
- HTML
<br>
tag (recommended) - Two trailing spaces
-
\n
new line escape character - Markdown backslash
\
(Not recommended)