2022-03-29 02:54:41 +08:00
!!! warning ""
Starting from the version `1.6.0` and earlier, all the options are `disabled` by default in the cli tool.
2022-03-29 03:18:38 +08:00
### backslashEscapesHTMLTags
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Support escaping of HTML tags.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.7.2`
2022-03-29 02:54:41 +08:00
=== "input"
```html
2022-03-29 03:18:38 +08:00
\<div>foo\</div>
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< p > < div> foo< /div> < / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### completeHTMLDocument
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Output a complete HTML document, including `<html>` , `<head>` , and `<body>` tags instead of an HTML fragment.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.8.5`
2022-03-29 02:54:41 +08:00
### customizedHeaderId
Set custom ID for a heading.
!!! warning ""
This option can be overridden with the [`noHeaderId` ](#noheaderid ) option.
* type: `boolean`
* default value: `false`
* introduced in: `1.7.0`
=== "code"
```html
## Sample heading {mycustomid}
```
=== "output"
```html
< h1 id = "mycustomid" > This is a heading< / h1 >
```
!!! hint ""
For better readability and human-friendliness of the heading IDs, it is also recommended to set the [`ghCompatibleHeaderId` ](#ghcompatibleheaderid ) option to `true` .
2022-03-29 03:18:38 +08:00
### disableForced4SpacesIndentedSublists
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Disable the rule of 4 spaces to indent sub-lists. If enabled, this option effectively reverts to the old behavior where you can indent sub-lists with 2 or 3 spaces.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.5.0`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
- one
- two
...
- one
- two
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< ul >
< li > one< / li >
< li > two< / li >
< / ul >
< p > ...< / p >
< ul >
< li > one
< ul >
< li > two< / li >
< / ul >
< / li >
< / ul >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< ul >
< li > one
< ul >
< li > two< / li >
< / ul >
< / li >
< / ul >
< p > ...< / p >
< ul >
< li > one
< ul >
< li > two< / li >
< / ul >
< / li >
< / ul >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### emoji
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Enable emoji support. For more info on available emojis, see https://github.com/showdownjs/showdown/wiki/Emojis (since v.1.8.0)
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
* type: `boolean`
* default value: `false`
* introduced in: `1.8.0`
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
=== "input"
```
this is a :smile: emoji
```
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
=== "output (value is `false` )"
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
```html
< p > this is a :smile: emoji< / p >
```
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
=== "output (value is `true` )"
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
```html
< p > this is a 😄 emoji< / p >
```
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
!!! hint "Full list of supported emojies"
Check the [Showdown Wiki ](https://github.com/showdownjs/showdown/wiki/Emojis#emoji-list ) for a full list of supported emojies.
### encodeEmails
Enable automatic obfuscation of email addresses. During this process, email addresses are encoded via Character Entities, transforming ASCII email addresses into their equivalent decimal entities.
* type: `boolean`
2022-03-29 02:54:41 +08:00
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.6.1`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
< myself @ example . com >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< a href = "mailto:myself@example.com" > myself@example.com< / a >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< a href = "mailto:myself@example.com" > m y se l f@ e x am p l e . c o m < / a >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### excludeTrailingPunctuationFromURLs
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Exclude trailing punctuation from autolinked URLs: `.` `!` `?` `(` `)`
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
This option applies only to links generated by [`simplifiedAutoLink` ](#simplifiedautolink ).
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.5.1`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
check this link www.google.com.
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `false` )"
2022-03-29 02:54:41 +08:00
```html
2022-03-29 03:18:38 +08:00
< p > check this link < a href = "www.google.com" > www.google.com.< / a > < / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `true` )"
2022-03-29 02:54:41 +08:00
```html
2022-03-29 03:18:38 +08:00
< p > check this link < a href = "www.google.com" > www.google.com< / a > .< / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### ghCodeBlocks
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Enable support for GFM code block style syntax (fenced codeblocks).
2022-03-29 02:54:41 +08:00
* type: `boolean`
2022-03-29 03:18:38 +08:00
* default value: `true`
* introduced in: `0.3.1`
2022-03-29 02:54:41 +08:00
=== "example"
```
2022-03-29 03:18:38 +08:00
```
some code here
```
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### ghCompatibleHeaderId
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Generate heading IDs compatible with GitHub style: spaces are replaced with dashes, and certain non-alphanumeric chars are removed.
!!! warning ""
This option can be overridden with the [`noHeaderId` ](#noheaderid ) option.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.5.5`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
# This is a heading with @#$%
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< h1 id = "thisisaheading" > This is a heading< / h1 >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< h1 id = "this-is-a-heading-with-" > This is a heading with @#$%< / h1 >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### ghMentions
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Enables support for GitHub `@mentions` that allows you to link to the GitHub profile page of the mentioned username.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.6.0`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
hello there @tivie
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< p > hello there @tivie </ p >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< p > hello there < a href = "https://www.github.com/tivie" > @tivie< / a > < / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### ghMentionsLink
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Specify where the link generated by `@mentions` should point to. Works only when [`ghMentions: true` ](#ghmentions ).
2022-03-29 02:54:41 +08:00
* type: `boolean`
2022-03-29 03:18:38 +08:00
* default value: `https://github.com/{u}`
* introduced in: `1.6.2`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
hello there @tivie
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `https://github.com/{u}` )"
2022-03-29 02:54:41 +08:00
```html
2022-03-29 03:18:38 +08:00
< p > hello there < a href = "https://www.github.com/tivie" > @tivie< / a > < / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `http://mysite.com/{u}/profile` )"
2022-03-29 02:54:41 +08:00
```html
2022-03-29 03:18:38 +08:00
< p > hello there < a href = "//mysite.com/tivie/profile" > @tivie< / a > < / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### headerLevelStart
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Set starting level for the heading tags.
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
* type: `integer`
* default value: `1`
* introduced in: `1.1.0`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
# This is a heading
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `1` )"
2022-03-29 02:54:41 +08:00
```html
2022-03-29 03:18:38 +08:00
< h1 > This is a heading< / h1 >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `3` )"
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
```html
< h3 > This is a heading< / h3 >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### literalMidWordUnderscores
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Treat underscores in the middle of words as literal characters.
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Underscores allow you to specify the words that should be emphasized. However, in some cases, this may be unwanted behavior. With this option enabled, underscores in the middle of words will no longer be interpreted as `<em>` and `<strong>` , but as literal underscores.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
* introduced in: `1.2.0`
=== "input"
```
2022-03-29 03:18:38 +08:00
some text with__underscores__in the middle
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< p > some text with< strong > underscores< / strong > in the middle< / p >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< p > some text with__underscores__in the middle< / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### metadata
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Enable support for document metadata (front-matter). You can define metadata at the top of a document between `««« »»»` or `--- ---` symbols.
2022-03-29 02:54:41 +08:00
* type: `boolean`
2022-03-29 03:18:38 +08:00
* default value: `false`
* introduced in: `1.8.5`
2022-03-29 02:54:41 +08:00
=== "input"
2022-03-29 03:18:38 +08:00
```js
let ref = `referenced value` ;
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
var markdown = `
---
first: Lorem
second: Ipsum
ref_variable: ${ref}
---
`
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
var conv = new showdown.Converter({metadata: true});
var html = conv.makeHtml(markdown);
var metadata = conv.getMetadata();
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `true` )"
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
```js
// console.log(metadata)
{
first: 'Lorem',
second: 'Ipsum',
ref_variable: 'referenced value'
}
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### noHeaderId
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Disable automatic generation of heading IDs.
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
!!! warning ""
Setting the option to `true` overrides the following options:
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
* [`prefixHeaderId` ](#prefixheaderid )
* [`customizedHeaderId` ](#customizedheaderid )
* [`ghCompatibleHeaderId` ](#ghcompatibleheaderid )
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.1.0`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
# This is a heading
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< h1 id = "thisisaheading" > This is a heading< / h1 >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< h1 > This is a heading< / h1 >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### omitExtraWLInCodeBlocks
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Omit trailing newline in code blocks (which is set by default before the closing tag). This option affects both indented and fenced (gfm style) code blocks.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.0.0`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
var foo = 'bar';
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< code > < pre > var foo = 'bar';
< / pre > < / code >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< code > < pre > var foo = 'bar';< / pre > < / code >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### openLinksInNewWindow
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Open links in new windows.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.7.0`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
[link ](https://google.com )
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< a href = "https://google.com" > link< / a >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< a href = "https://google.com" rel = "noopener noreferrer" target = "_blank" > link< / a >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### parseImgDimensions
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Set image dimensions from within Markdown syntax.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.1.0`
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
=== "example"
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
![foo ](foo.jpg =100x80 ) set width to 100px and height to 80px
![bar ](bar.jpg =100x* ) set width to 100px and height to "auto"
![baz ](baz.jpg =80%x5em ) set width to 80% and height to 5em
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### prefixHeaderId
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Add a prefix to the generated heading ID:
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
* Passing a string will add that string to the heading ID.
* Passing `true` will add a generic `section` prefix.
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
!!! warning ""
This option can be overridden with the [`noHeaderId` ](#noheaderid ) option.
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
* type: `string / boolean`
2022-03-29 02:54:41 +08:00
* default value: `false`
=== "input"
```
2022-03-29 03:18:38 +08:00
# This is a heading
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< h1 id = "thisisaheading" > This is a heading< / h1 >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< h1 id = "sectionthisisaheading" > This is a heading< / h1 >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `showdown` )"
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
```html
< h1 id = "showdownthisisaheading" > This is a heading< / h1 >
```
### rawHeaderId
Replace ` ` (space), `'` (single quote), and `"` (double quote) with `-` (dash) in the generated heading IDs, including prefixes.
!!! danger ""
**Use with caution** as it might result in malformed IDs.
* type:
* default value:
* introduced in: `1.7.3`
### rawPrefixHeaderId
Prevent Showndown from modifying the prefix. Works only when [`prefixHeaderId` ](#prefixheaderid ) is set to a string value.
!!! danger ""
**Use with caution** as it might result in malformed IDs. For example, when the prefix contains special characters like `"` `\` `/` or others.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.7.3`
### requireSpaceBeforeHeadingText
Require a space between a heading `#` and the heading text.
* type: `boolean`
* default value: `false`
* introduced in: `1.5.3`
2022-03-29 02:54:41 +08:00
=== "input"
2022-03-29 03:18:38 +08:00
```
#heading
```
=== "output (value is `false` )"
2022-03-29 02:54:41 +08:00
```html
2022-03-29 03:18:38 +08:00
< h1 id = "heading" > heading< / h1 >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< p > #heading< / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### simpleLineBreaks
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Parse line breaks as `<br/>` in paragraphs (GitHub-style behavior).
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.5.1`
2022-03-29 02:54:41 +08:00
=== "input"
```
2022-03-29 03:18:38 +08:00
a line
wrapped in two
2022-03-29 02:54:41 +08:00
```
=== "output (value is `false` )"
```html
2022-03-29 03:18:38 +08:00
< p > a line
wrapped in two< / p >
2022-03-29 02:54:41 +08:00
```
=== "output (value is `true` )"
```html
2022-03-29 03:18:38 +08:00
< p > a line< br >
wrapped in two< / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
### simplifiedAutoLink
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Enable automatic linking for plain text URLs.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.2.0`
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
=== "input"
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
Lorem ipsum www.google.com
```
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
=== "output (value is `false` )"
```html
< p > Lorem ipsum www.google.com< / p >
2022-03-29 02:54:41 +08:00
```
2022-03-29 03:18:38 +08:00
=== "output (value is `true` )"
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
```html
< p > Lorem ipsum < a href = "www.google.com" > www.google.com< / a > < / p >
```
### smartIndentationFix
Resolve indentation problems related to ES6 template strings in the midst of indented code.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.4.2`
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
### smoothLivePreview
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
Resolve an awkward effect when a paragraph is followed by a list. This effect appears on some circumstances, in live preview editors.
2022-03-29 02:54:41 +08:00
* type: `boolean`
* default value: `false`
2022-03-29 03:18:38 +08:00
* introduced in: `1.2.1`
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
!!! example "awkward effect"
2022-03-29 02:54:41 +08:00
2022-03-29 03:18:38 +08:00
![](http://i.imgur.com/YQ9iHTL.gif )
2022-03-29 02:54:41 +08:00
### splitAdjacentBlockquotes
Split adjacent blockquote blocks.
* type: `boolean`
* default value: `false`
* introduced in: `1.8.6`
=== "input"
```
> Quote #1
>> Sub-quote 1
> Quote #2
>> Sub-quote 2
```
=== "output (value is `false` )"
```html
< blockquote >
< p > Quote #1 </ p >
< blockquote >
< p > Sub-quote 1< / p >
< / blockquote >
< p > Quote #2 </ p >
< blockquote >
< p > Sub-quote 2< / p >
< / blockquote >
< / blockquote >
```
=== "output (value is `true` )"
```html
< blockquote >
< p > Quote #1 </ p >
< blockquote >
< p > Sub-quote 1< / p >
< / blockquote >
< / blockquote >
< blockquote >
< p > Quote #2 </ p >
< blockquote >
< p > Sub-quote 2< / p >
< / blockquote >
< / blockquote >
```
2022-03-29 03:18:38 +08:00
### strikethrough
Enable support for strikethrough (`< del > `).
* type: `boolean`
* default value: `false`
* introduced in: `1.2.0`
=== "input"
```
~~strikethrough~~
```
=== "output (value is `true` )"
```html
< del > strikethrough< / del >
```
### tables
Enable support for tables syntax.
* type: `boolean`
* default value: `false`
* introduced in: `1.2.0`
=== "example"
```
| h1 | h2 | h3 |
|:------|:-------:|--------:|
| 100 | [a][1] | ![b][2] |
| *foo* | **bar** | ~~baz~~ |
```
### tablesHeaderId
Generate automatic IDs for table headings. Works only when [`tables: true` ](#tables ).
* type: `boolean`
* default value: `false`
* introduced in: `1.2.0`
### tasklists
Enable support for GitHub style tasklists.
* type: `boolean`
* default value: `false`
* introduced in: `1.2.0`
=== "example"
```
- [x] This task is done
- [ ] This task is still pending
```
### underline
Enable support for underline. If enabled, underscores will no longer be parsed as `<em>` and `<strong>` .
* type: `boolean`
* default value: `false`
* status: `Experimental`
=== "example"
```
__underlined word__ // double underscores
___underlined word___ // triple underscores
```