Showdown

Build Status: Linux Build Status: Windows Browserstack Tests npm version Bower version Donate


Showdown is a JavaScript Markdown to HTML converter, based on the original works by John Gruber. Showdown can be used client side (in the browser) or server side (with Node.js).

Live DEMO

Check out a live demo here: http://demo.showdownjs.com/

As you know, ShowdownJS is a free library and it will remain free forever. However, maintaining and improving the library costs time and money.

If you like our work and find our library useful, please donate through PayPal! Your contribution will be greatly appreciated and help me continue to develop this awesome library.

License

ShowdownJS v 2.0 is released under the MIT license. Previous versions are released under BSD.

Who uses Showdown (or a fork)

Installation

Download tarball

You can download the latest release tarball directly from releases.

Bower

bower install showdown

npm (server-side)

npm install showdown

NuGet package

PM> Install-Package showdownjs

The NuGet Packages can be found here.

CDN

You can also use one of several CDNs available:

  • jsDelivr

      https://cdn.jsdelivr.net/npm/showdown@<version tag>/dist/showdown.min.js
    
  • cdnjs

      https://cdnjs.cloudflare.com/ajax/libs/showdown/<version tag>/showdown.min.js
    
  • unpkg

      https://unpkg.com/showdown/dist/showdown.min.js
    

Note: replace <version tag> with an actual full length version you're interested in e.g. 1.9.0

Browser Compatibility

Showdown has been tested successfully with:

  • Firefox 1.5 and 2.0
  • Chrome 12.0
  • Internet Explorer 6 and 7
  • Safari 2.0.4
  • Opera 8.54 and 9.10
  • Netscape 8.1.2
  • Konqueror 3.5.4

In theory, Showdown will work in any browser that supports ECMA 262 3rd Edition (JavaScript 1.5). The converter itself might even work in things that aren't web browsers, like Acrobat. No promises.

Node compatibility

Showdown is intended to work on any supported Node.js version (see the Node.js releases schedule. The code may work with previous versions of Node.js, but no accomidations are made to ensure it does.

Legacy version

If you're looking for showdown v<1.0.0, you can find it in the legacy branch.

Changelog

You can check the full changelog

Extended documentation

Check our wiki pages for examples and a more in-depth documentation.

Quick Example

Node

var showdown  = require('showdown'),
    converter = new showdown.Converter(),
    text      = '# hello, markdown!',
    html      = converter.makeHtml(text);

Browser

var converter = new showdown.Converter(),
    text      = '# hello, markdown!',
    html      = converter.makeHtml(text);

Output

Both examples should output...

    <h1 id="hellomarkdown">hello, markdown!</h1>

Options

You can change some of showdown's default behavior through options.

Setting options

Options can be set:

Globally

Setting a "global" option affects all instances of showdown

showdown.setOption('optionKey', 'value');

Locally

Setting a "local" option only affects the specified Converter object. Local options can be set:

  • through the constructor

    var converter = new showdown.Converter({optionKey: 'value'});
  • through the setOption() method

    var converter = new showdown.Converter();
    converter.setOption('optionKey', 'value');

Getting an option

Showdown provides 2 methods (both local and global) to retrieve previous set options.

getOption()

// Global
var myOption = showdown.getOption('optionKey');

//Local
var myOption = converter.getOption('optionKey');

getOptions()

// Global
var showdownGlobalOptions = showdown.getOptions();

//Local
var thisConverterSpecificOptions = converter.getOptions();

Retrieve the default options

You can get showdown's default options with:

var defaultOptions = showdown.getDefaultOptions();

Valid Options

  • omitExtraWLInCodeBlocks: (boolean) [default false] Omit the trailing newline in a code block. Ex:

    This:

    <code><pre>var foo = 'bar';
    </pre></code>

    Becomes this:

    <code><pre>var foo = 'bar';</pre></code>
  • noHeaderId: (boolean) [default false] Disable the automatic generation of header ids. Setting to true overrides prefixHeaderId

  • customizedHeaderId: (boolean) [default false] Use text in curly braces as header id. (since v1.7.0) Example:

    ## Sample header {real-id}     will use real-id as id
    
  • ghCompatibleHeaderId: (boolean) [default false] Generate header ids compatible with github style (spaces are replaced with dashes and a bunch of non alphanumeric chars are removed) (since v1.5.5)

  • prefixHeaderId: (string/boolean) [default false] Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section' prefix.

  • rawPrefixHeaderId: (boolean) [default false] Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix). Has no effect if prefixHeaderId is set to false. (since v 1.7.3)

  • rawHeaderId: (boolean) [default false] Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids (since v1.7.3)

  • headerLevelStart: (integer) [default 1] Set the header starting level. For instance, setting this to 3 means that

    # foo

    will be parsed as

    <h3>foo</h3>
  • parseImgDimensions: (boolean) [default false] Enable support for setting image dimensions from within markdown syntax. Examples:

    ![foo](foo.jpg =100x80)     simple, assumes units are in px
    ![bar](bar.jpg =100x*)      sets the height to "auto"
    ![baz](baz.jpg =80%x5em)  Image with width of 80% and height of 5em
    
  • simplifiedAutoLink: (boolean) [default false] Turning this option on will enable automatic linking to urls. This means that:

    some text www.google.com

    will be parsed as

    <p>some text <a href="www.google.com">www.google.com</a>
  • excludeTrailingPunctuationFromURLs: (boolean) [default false] This option excludes trailing punctuation from autolinking urls. Punctuation excluded: . ! ? ( ). Only applies if simplifiedAutoLink option is set to true.

  • literalMidWordUnderscores: (boolean) [default false] Turning this on will stop showdown from interpreting underscores in the middle of words as <em> and <strong> and instead treat them as literal underscores.

    Example:

    some text with__underscores__in middle

    will be parsed as

    <p>some text with__underscores__in middle</p>
  • literalMidWordAsterisks: (boolean) [default false] Turning this on will stop showdown from interpreting asterisks in the middle of words as <em> and <strong> and instead treat them as literal asterisks.

  • strikethrough: (boolean) [default false] Enable support for strikethrough syntax. ~~strikethrough~~ as <del>strikethrough</del>

  • tables: (boolean) [default false] Enable support for tables syntax. Example:

    | h1    |    h2   |      h3 |
    |:------|:-------:|--------:|
    | 100   | [a][1]  | ![b][2] |
    | *foo* | **bar** | ~~baz~~ |

    See the wiki for more info

  • tablesHeaderId: (boolean) [default false] If enabled adds an id property to table headers tags.

  • ghCodeBlocks: (boolean) [default true] Enable support for GFM code block style.

  • tasklists: (boolean) [default false] Enable support for GFM tasklists. Example:

     - [x] This task is done
     - [ ] This is still pending
  • smoothLivePreview: (boolean) [default false] Prevents weird effects in live previews due to incomplete input

  • smartIndentationFix: (boolean) [default false] Tries to smartly fix indentation problems related to es6 template strings in the midst of indented code.

  • disableForced4SpacesIndentedSublists: (boolean) [default false] Disables the requirement of indenting sublists by 4 spaces for them to be nested, effectively reverting to the old behavior where 2 or 3 spaces were enough. (since v1.5.0)

  • simpleLineBreaks: (boolean) [default false] Parses line breaks as <br>, without needing 2 spaces at the end of the line (since v1.5.1)

    a line  
    wrapped in two

    turns into:

    <p>a line<br>
    wrapped in two</p>
  • requireSpaceBeforeHeadingText: (boolean) [default false] Makes adding a space between # and the header text mandatory (since v1.5.3)

  • ghMentions: (boolean) [default false] Enables github @mentions, which link to the username mentioned (since v1.6.0)

  • ghMentionsLink: (string) [default https://github.com/{u}] Changes the link generated by @mentions. Showdown will replace {u} with the username. Only applies if ghMentions option is enabled. Example: @tivie with ghMentionsOption set to //mysite.com/{u}/profile will result in <a href="//mysite.com/tivie/profile">@tivie</a>

  • encodeEmails: (boolean) [default true] Enable e-mail addresses encoding through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities. (since v1.6.1)

    NOTE: Prior to version 1.6.1, emails would always be obfuscated through dec and hex encoding.

  • openLinksInNewWindow: (boolean) [default false] Open all links in new windows (by adding the attribute target="_blank" to <a> tags) (since v1.7.0)

  • backslashEscapesHTMLTags: (boolean) [default false] Support for HTML Tag escaping. ex: \<div>foo\</div> (since v1.7.2)

  • emoji: (boolean) [default false] Enable emoji support. Ex: this is a :smile: emoji For more info on available emojis, see https://github.com/showdownjs/showdown/wiki/Emojis (since v.1.8.0)

  • underline: (boolean) [default false] EXPERIMENTAL FEATURE Enable support for underline. Syntax is double or triple underscores ex: __underlined word__. With this option enabled, underscores are no longer parses into <em> and <strong>.

  • ellipsis: (boolean) [default true] Replaces three dots with the ellipsis unicode character.

  • completeHTMLDocument: (boolean) [default false] Outputs a complete html document, including <html>, <head> and <body> tags' instead of an HTML fragment. (since v.1.8.5)

  • metadata: (boolean) [default false] Enable support for document metadata (defined at the top of the document between ««« and »»» or between --- and ---). (since v.1.8.5)

    var conv = new showdown.Converter({metadata: true});
    var html = conv.makeHtml(someMd);
    var metadata = conv.getMetadata(); // returns an object with the document metadata
  • splitAdjacentBlockquotes: (boolean) [default false] Split adjacent blockquote blocks.(since v.1.8.6)

  • moreStyling: (boolean) [default false] Adds some useful classes for css styling. (since v2.0.1)

    • Tasklists: Adds the class task-list-item-complete to completed tasks items in GFM tasklists.

NOTE: Please note that until version 1.6.0, all of these options are DISABLED by default in the cli tool.

Flavors

You can also use flavors or presets to set the correct options automatically, so that showdown behaves like popular markdown flavors.

Currently, the following flavors are available:

  • original - original markdown flavor as in John Gruber's spec
  • vanilla - showdown base flavor (as from v1.3.1)
  • github - GFM (GitHub Flavored Markdown)

Global

showdown.setFlavor('github');

Instance

converter.setFlavor('github');

CLI Tool

Showdown also comes bundled with a Command Line Interface tool. You can check the CLI wiki page for more info

Integration with AngularJS

ShowdownJS project also provides seamlessly integration with AngularJS via a "plugin". Please visit https://github.com/showdownjs/ngShowdown for more information.

Integration with TypeScript

If you're using TypeScript you maybe want to use the types from DefinitelyTyped

Integration with SystemJS/JSPM

Integration with SystemJS can be obtained via the third party "system-md" plugin.

Integration with VueJS

To use ShowdownJS as a Vue component quickly, you can check vue-showdown.

XSS vulnerability

Showdown doesn't sanitize the input. This is by design since markdown relies on it to allow certain features to be correctly parsed into HTML. This, however, means XSS injection is quite possible.

Please refer to the wiki article Markdown's XSS Vulnerability (and how to mitigate it) for more information.

Extensions

Showdown allows additional functionality to be loaded via extensions. (you can find a list of known showdown extensions here) You can also find a boilerplate, to create your own extensions in this repository

Client-side Extension Usage

<script src="showdown.js" />
<script src="twitter-extension.js" />

var converter = new showdown.Converter({ extensions: ['twitter'] });

Server-side Extension Usage

var showdown    = require('showdown'),
    myExtension = require('myExtension'),
    converter = new showdown.Converter({ extensions: ['myExtension'] });

Building

Building your clone of the repository is easy.

Prerequesites: Node.js v12, npm and npx must be installed.

  1. run npm install.

  2. run npx grunt build (see Gruntfile.js). This command:

    1. Cleans the repo.
    2. Checks code quality (JSHint and ESLint).
    3. Runs tests.
    4. Creates the distributable and minified files in the dist folder.

Tests

A suite of tests is available which require Node.js. Once Node is installed, run the following command from the project root to install the dependencies:

npm install

Once installed the tests can be run from the project root using:

npm test

New test cases can easily be added. Create a markdown file (ending in .md) which contains the markdown to test. Create a .html file of the exact same name. It will automatically be tested when the tests are executed with mocha.

Contributing

If you wish to contribute please read the following quick guide.

Want a Feature?

You can request a new feature by submitting an issue. If you would like to implement a new feature feel free to issue a Pull Request.

Pull requests (PRs)

PRs are awesome. However, before you submit your pull request consider the following guidelines:

  • Search GitHub for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.

  • When issuing PRs that change code, make your changes in a new git branch based on develop:

    git checkout -b my-fix-branch develop
  • Run the full test suite before submitting and make sure all tests pass (obviously =P).

  • Try to follow our coding style rules. Breaking them prevents the PR to pass the tests.

  • Refrain from fixing multiple issues in the same pull request. It's preferable to open multiple small PRs instead of one hard to review big one.

  • If the PR introduces a new feature or fixes an issue, please add the appropriate test case.

  • We use conventional commit notes to generate the changelog that follow the conventional changelog spec. It's extremely helpful if your commit messages adhere to these Commit Guidelines.

  • Don't forget to add your name to the CREDITS.md file. We like to give credit were it's due.

  • If we suggest changes then:

    • Make the required updates.
    • Re-run the test suite to ensure tests are still passing.
    • Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
    git rebase develop -i
    git push origin my-fix-branch -f
  • After your pull request is merged, you can safely delete your branch.

If you have time to contribute to this project, we feel obliged that you get credit for it. These rules enable us to review your PR faster and will give you appropriate credit in your GitHub profile. We thank you in advance for your contribution!

Joining the team

We're looking for members to help maintaining Showdown. Please see this issue to express interest or comment on this note.

Credits

Full credit list at https://github.com/showdownjs/showdown/blob/master/CREDITS.md

Showdown is powered by:
webstorm

showdownjs/showdown

{
"props": {
"initialPayload": {
"allShortcutsEnabled": false,
"path": "/",
"repo": {
"id": 75547,
"defaultBranch": "master",
"name": "showdown",
"ownerLogin": "showdownjs",
"currentUserCanPush": false,
"isFork": false,
"isEmpty": false,
"createdAt": "2008-11-13T21:39:21.000Z",
"ownerAvatar": "https://avatars.githubusercontent.com/u/2754978?v=4",
"public": true,
"private": false,
"isOrgOwned": true
},
"currentUser": null,
"refInfo": {
"name": "master",
"listCacheKey": "v0:1674820517.037138",
"canEdit": false,
"refType": "branch",
"currentOid": "95255984ad80acf745ed74605bd3ad8357dc9b33"
},
"tree": {
"items": [
{
"name": ".github/workflows",
"path": ".github/workflows",
"contentType": "directory",
"hasSimplifiedPath": true
},
{
"name": "bin",
"path": "bin",
"contentType": "directory"
},
{
"name": "dist",
"path": "dist",
"contentType": "directory"
},
{
"name": "docs",
"path": "docs",
"contentType": "directory"
},
{
"name": "src",
"path": "src",
"contentType": "directory"
},
{
"name": "test",
"path": "test",
"contentType": "directory"
},
{
"name": ".editorconfig",
"path": ".editorconfig",
"contentType": "file"
},
{
"name": ".eslintrc.json",
"path": ".eslintrc.json",
"contentType": "file"
},
{
"name": ".gitattributes",
"path": ".gitattributes",
"contentType": "file"
},
{
"name": ".gitignore",
"path": ".gitignore",
"contentType": "file"
},
{
"name": ".jshintignore",
"path": ".jshintignore",
"contentType": "file"
},
{
"name": ".jshintrc",
"path": ".jshintrc",
"contentType": "file"
},
{
"name": "CHANGELOG.md",
"path": "CHANGELOG.md",
"contentType": "file"
},
{
"name": "CONTRIBUTING.md",
"path": "CONTRIBUTING.md",
"contentType": "file"
},
{
"name": "CREDITS.md",
"path": "CREDITS.md",
"contentType": "file"
},
{
"name": "DONATIONS.md",
"path": "DONATIONS.md",
"contentType": "file"
},
{
"name": "Gruntfile.js",
"path": "Gruntfile.js",
"contentType": "file"
},
{
"name": "LICENSE",
"path": "LICENSE",
"contentType": "file"
},
{
"name": "README.md",
"path": "README.md",
"contentType": "file"
},
{
"name": "SECURITY.md",
"path": "SECURITY.md",
"contentType": "file"
},
{
"name": "TASKS.TODO.md",
"path": "TASKS.TODO.md",
"contentType": "file"
},
{
"name": "bower.json",
"path": "bower.json",
"contentType": "file"
},
{
"name": "karma.browserstack.js",
"path": "karma.browserstack.js",
"contentType": "file"
},
{
"name": "karma.conf.js",
"path": "karma.conf.js",
"contentType": "file"
},
{
"name": "mkdocs.yml",
"path": "mkdocs.yml",
"contentType": "file"
},
{
"name": "package-lock.json",
"path": "package-lock.json",
"contentType": "file"
},
{
"name": "package.json",
"path": "package.json",
"contentType": "file"
},
{
"name": "performance.json",
"path": "performance.json",
"contentType": "file"
},
{
"name": "performance.log.md",
"path": "performance.log.md",
"contentType": "file"
}
],
"templateDirectorySuggestionUrl": null,
"readme": null,
"totalCount": 29,
"showBranchInfobar": false
},
"fileTree": null,
"fileTreeProcessingTime": null,
"foldersToFetch": [],
"treeExpanded": false,
"symbolsExpanded": false,
"isOverview": true,
"overview": {
"banners": {
"shouldRecommendReadme": false,
"isPersonalRepo": false,
"showUseActionBanner": false,
"actionSlug": null,
"actionId": null,
"showProtectBranchBanner": false,
"publishBannersInfo": {
"dismissActionNoticePath": "/settings/dismiss-notice/publish_action_from_repo",
"releasePath": "/showdownjs/showdown/releases/new?marketplace=true",
"showPublishActionBanner": false
},
"interactionLimitBanner": null,
"showInvitationBanner": false,
"inviterName": null
},
"codeButton": {
"contactPath": "/contact",
"isEnterprise": false,
"local": {
"protocolInfo": {
"httpAvailable": true,
"sshAvailable": null,
"httpUrl": "https://github.com/showdownjs/showdown.git",
"showCloneWarning": null,
"sshUrl": null,
"sshCertificatesRequired": null,
"sshCertificatesAvailable": null,
"ghCliUrl": "gh repo clone showdownjs/showdown",
"defaultProtocol": "http",
"newSshKeyUrl": "/settings/ssh/new",
"setProtocolPath": "/users/set_protocol"
},
"platformInfo": {
"cloneUrl": "https://desktop.github.com",
"showVisualStudioCloneButton": false,
"visualStudioCloneUrl": "https://windows.github.com",
"showXcodeCloneButton": false,
"xcodeCloneUrl": "https://developer.apple.com",
"zipballUrl": "/showdownjs/showdown/archive/refs/heads/master.zip"
}
},
"newCodespacePath": "/codespaces/new?hide_repo_select=true&repo=75547"
},
"popovers": {
"rename": null,
"renamedParentRepo": null
},
"commitCount": "916",
"overviewFiles": [
{
"displayName": "README.md",
"repoName": "showdown",
"refName": "master",
"path": "README.md",
"preferredFileType": "readme",
"tabName": "README",
"richText": "<article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png\"><img src=\"https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png\" alt=\"Showdown\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/showdownjs/showdown/actions/workflows/node.linux.yml/badge.svg\"><img src=\"https://github.com/showdownjs/showdown/actions/workflows/node.linux.yml/badge.svg\" alt=\"Build Status: Linux\" style=\"max-width: 100%;\"></a>\n<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/showdownjs/showdown/actions/workflows/node.win.yml/badge.svg\"><img src=\"https://github.com/showdownjs/showdown/actions/workflows/node.win.yml/badge.svg\" alt=\"Build Status: Windows\" style=\"max-width: 100%;\"></a>\n<a href=\"https://automate.browserstack.com/public-build/VTIvTDNqWVdaTHljbS9RNmYrcTBiL0Uxc3dkRDhaN1dPaXpPb2VOc1B2VT0tLU1Ib09kVjVzMjhFcHExbWFSWlJEV3c9PQ==--1fb92e1730e4a00630d17d533822de6403ca65ec\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/691c40a722dcbb184110ff96172c98d632b1d06305498b65c219c0e6e603edd6/68747470733a2f2f6175746f6d6174652e62726f77736572737461636b2e636f6d2f62616467652e7376673f62616467655f6b65793d5654497654444e715756646154486c6a625339524e6d5972635442694c3055786333646b524468614e316450615870506232564f63314232565430744c5531496230396b566a567a4d6a68466348457862574653576c4a455633633950513d3d2d2d31666239326531373330653461303036333064313764353333383232646536343033636136356563\" alt=\"Browserstack Tests\" data-canonical-src=\"https://automate.browserstack.com/badge.svg?badge_key=VTIvTDNqWVdaTHljbS9RNmYrcTBiL0Uxc3dkRDhaN1dPaXpPb2VOc1B2VT0tLU1Ib09kVjVzMjhFcHExbWFSWlJEV3c9PQ==--1fb92e1730e4a00630d17d533822de6403ca65ec\" style=\"max-width: 100%;\"></a>\n<a href=\"http://badge.fury.io/js/showdown\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/d34140ce89641c889fd1389de0efd6904bd927ada332d4e9f6fc2b263a283500/68747470733a2f2f62616467652e667572792e696f2f6a732f73686f77646f776e2e737667\" alt=\"npm version\" data-canonical-src=\"https://badge.fury.io/js/showdown.svg\" style=\"max-width: 100%;\"></a>\n<a href=\"http://badge.fury.io/bo/showdown\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/cea92c99fa051ac32713fe38eb9ffbd7eb7293f9456cab99de90f7e1b26414f8/68747470733a2f2f62616467652e667572792e696f2f626f2f73686f77646f776e2e737667\" alt=\"Bower version\" data-canonical-src=\"https://badge.fury.io/bo/showdown.svg\" style=\"max-width: 100%;\"></a>\n<a href=\"https://www.paypal.me/tiviesantos\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/0283ea90498d8ea623c07906a5e07e9e6c2a5eaa6911d52033687c60cfa8d22f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667\" alt=\"Donate\" data-canonical-src=\"https://img.shields.io/badge/Donate-PayPal-green.svg\" style=\"max-width: 100%;\"></a></p>\n<hr>\n<p dir=\"auto\">Showdown is a JavaScript Markdown to HTML converter, based on the original works by John Gruber.\nShowdown can be used client side (in the browser) or server side (with Node.js).</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Live DEMO</h2><a id=\"user-content-live-demo\" class=\"anchor\" aria-label=\"Permalink: Live DEMO\" href=\"#live-demo\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Check out a live demo here: <a href=\"http://demo.showdownjs.com/\" rel=\"nofollow\">http://demo.showdownjs.com/</a></p>\n<p dir=\"auto\">As you know, ShowdownJS is a free library and it will remain free forever. However, maintaining and improving the library costs time and money.</p>\n<p dir=\"auto\">If you like our work and find our library useful, please donate through <a href=\"https://www.paypal.me/tiviesantos\" rel=\"nofollow\">PayPal</a>! Your contribution will be greatly appreciated and help me continue to develop this awesome library.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">License</h2><a id=\"user-content-license\" class=\"anchor\" aria-label=\"Permalink: License\" href=\"#license\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">ShowdownJS v 2.0 is released under the MIT license.\nPrevious versions are released under BSD.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Who uses Showdown (or a fork)</h2><a id=\"user-content-who-uses-showdown-or-a-fork\" class=\"anchor\" aria-label=\"Permalink: Who uses Showdown (or a fork)\" href=\"#who-uses-showdown-or-a-fork\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<ul dir=\"auto\">\n<li><a href=\"https://github.com/GoogleCloudPlatform\">GoogleCloudPlatform</a></li>\n<li><a href=\"https://www.meteor.com/\" rel=\"nofollow\">Meteor</a></li>\n<li><a href=\"http://stackexchange.com/\" rel=\"nofollow\">Stackexchange</a> - forked as <a href=\"https://code.google.com/p/pagedown/\" rel=\"nofollow\">PageDown</a></li>\n<li><a href=\"https://github.com/Vertafore/docular\">docular</a></li>\n<li><a href=\"https://github.com/oscarmorrison/md-page\">md-page</a></li>\n<li><a href=\"https://qcobjects.dev\" rel=\"nofollow\">QCObjects</a></li>\n<li><a href=\"https://www.npmjs.com/browse/depended/showdown\" rel=\"nofollow\">and some others...</a></li>\n</ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Installation</h2><a id=\"user-content-installation\" class=\"anchor\" aria-label=\"Permalink: Installation\" href=\"#installation\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Download tarball</h3><a id=\"user-content-download-tarball\" class=\"anchor\" aria-label=\"Permalink: Download tarball\" href=\"#download-tarball\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can download the latest release tarball directly from <a href=\"https://github.com/showdownjs/showdown/releases\">releases</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Bower</h3><a id=\"user-content-bower\" class=\"anchor\" aria-label=\"Permalink: Bower\" href=\"#bower\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"bower install showdown\"><pre class=\"notranslate\"><code>bower install showdown\n</code></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">npm (server-side)</h3><a id=\"user-content-npm-server-side\" class=\"anchor\" aria-label=\"Permalink: npm (server-side)\" href=\"#npm-server-side\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"npm install showdown\"><pre class=\"notranslate\"><code>npm install showdown\n</code></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">NuGet package</h3><a id=\"user-content-nuget-package\" class=\"anchor\" aria-label=\"Permalink: NuGet package\" href=\"#nuget-package\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"PM&gt; Install-Package showdownjs\"><pre class=\"notranslate\"><code>PM&gt; Install-Package showdownjs\n</code></pre></div>\n<p dir=\"auto\">The NuGet Packages can be found <a href=\"https://www.nuget.org/packages/showdownjs/\" rel=\"nofollow\">here</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">CDN</h3><a id=\"user-content-cdn\" class=\"anchor\" aria-label=\"Permalink: CDN\" href=\"#cdn\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can also use one of several CDNs available:</p>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\">jsDelivr</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\" https://cdn.jsdelivr.net/npm/showdown@&lt;version tag&gt;/dist/showdown.min.js\"><pre class=\"notranslate\"><code> https://cdn.jsdelivr.net/npm/showdown@&lt;version tag&gt;/dist/showdown.min.js\n</code></pre></div>\n</li>\n<li>\n<p dir=\"auto\">cdnjs</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\" https://cdnjs.cloudflare.com/ajax/libs/showdown/&lt;version tag&gt;/showdown.min.js\"><pre class=\"notranslate\"><code> https://cdnjs.cloudflare.com/ajax/libs/showdown/&lt;version tag&gt;/showdown.min.js\n</code></pre></div>\n</li>\n<li>\n<p dir=\"auto\">unpkg</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\" https://unpkg.com/showdown/dist/showdown.min.js\"><pre class=\"notranslate\"><code> https://unpkg.com/showdown/dist/showdown.min.js\n</code></pre></div>\n</li>\n</ul>\n<p dir=\"auto\"><em>Note</em>: replace <code>&lt;version tag&gt;</code> with an actual full length version you're interested in e.g. <code>1.9.0</code></p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Browser Compatibility</h2><a id=\"user-content-browser-compatibility\" class=\"anchor\" aria-label=\"Permalink: Browser Compatibility\" href=\"#browser-compatibility\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Showdown has been tested successfully with:</p>\n<ul dir=\"auto\">\n<li>Firefox 1.5 and 2.0</li>\n<li>Chrome 12.0</li>\n<li>Internet Explorer 6 and 7</li>\n<li>Safari 2.0.4</li>\n<li>Opera 8.54 and 9.10</li>\n<li>Netscape 8.1.2</li>\n<li>Konqueror 3.5.4</li>\n</ul>\n<p dir=\"auto\">In theory, Showdown will work in any browser that supports ECMA 262 3rd Edition (JavaScript 1.5).\nThe converter itself might even work in things that aren't web browsers, like Acrobat. No promises.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Node compatibility</h2><a id=\"user-content-node-compatibility\" class=\"anchor\" aria-label=\"Permalink: Node compatibility\" href=\"#node-compatibility\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Showdown is intended to work on any supported Node.js version (see the <a href=\"https://nodejs.org/en/about/releases/\" rel=\"nofollow\">Node.js releases schedule</a>. The code may work with previous versions of Node.js, but no accomidations are made to ensure it does.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Legacy version</h2><a id=\"user-content-legacy-version\" class=\"anchor\" aria-label=\"Permalink: Legacy version\" href=\"#legacy-version\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">If you're looking for showdown v&lt;1.0.0, you can find it in the <a href=\"https://github.com/showdownjs/showdown/tree/legacy\"><strong>legacy branch</strong></a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Changelog</h2><a id=\"user-content-changelog\" class=\"anchor\" aria-label=\"Permalink: Changelog\" href=\"#changelog\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can check the full <a href=\"https://github.com/showdownjs/showdown/blob/master/CHANGELOG.md\">changelog</a></p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Extended documentation</h2><a id=\"user-content-extended-documentation\" class=\"anchor\" aria-label=\"Permalink: Extended documentation\" href=\"#extended-documentation\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Check our <a href=\"https://github.com/showdownjs/showdown/wiki\">wiki pages</a> for examples and a more in-depth documentation.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Quick Example</h2><a id=\"user-content-quick-example\" class=\"anchor\" aria-label=\"Permalink: Quick Example\" href=\"#quick-example\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Node</h3><a id=\"user-content-node\" class=\"anchor\" aria-label=\"Permalink: Node\" href=\"#node\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var showdown = require('showdown'),\n converter = new showdown.Converter(),\n text = '# hello, markdown!',\n html = converter.makeHtml(text);\"><pre><span class=\"pl-k\">var</span> <span class=\"pl-s1\">showdown</span> <span class=\"pl-c1\">=</span> <span class=\"pl-en\">require</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'showdown'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">,</span>\n <span class=\"pl-s1\">converter</span> <span class=\"pl-c1\">=</span> <span class=\"pl-k\">new</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-c1\">Converter</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">,</span>\n <span class=\"pl-s1\">text</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s\">'# hello, markdown!'</span><span class=\"pl-kos\">,</span>\n <span class=\"pl-s1\">html</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">converter</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">makeHtml</span><span class=\"pl-kos\">(</span><span class=\"pl-s1\">text</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Browser</h3><a id=\"user-content-browser\" class=\"anchor\" aria-label=\"Permalink: Browser\" href=\"#browser\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var converter = new showdown.Converter(),\n text = '# hello, markdown!',\n html = converter.makeHtml(text);\"><pre><span class=\"pl-k\">var</span> <span class=\"pl-s1\">converter</span> <span class=\"pl-c1\">=</span> <span class=\"pl-k\">new</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-c1\">Converter</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">,</span>\n <span class=\"pl-s1\">text</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s\">'# hello, markdown!'</span><span class=\"pl-kos\">,</span>\n <span class=\"pl-s1\">html</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">converter</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">makeHtml</span><span class=\"pl-kos\">(</span><span class=\"pl-s1\">text</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Output</h3><a id=\"user-content-output\" class=\"anchor\" aria-label=\"Permalink: Output\" href=\"#output\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Both examples should output...</p>\n<div class=\"highlight highlight-text-html-basic notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\" &lt;h1 id=&quot;hellomarkdown&quot;&gt;hello, markdown!&lt;/h1&gt;\"><pre> <span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">h1</span> <span class=\"pl-c1\">id</span>=\"<span class=\"pl-s\">hellomarkdown</span>\"<span class=\"pl-kos\">&gt;</span>hello, markdown!<span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">h1</span><span class=\"pl-kos\">&gt;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Options</h2><a id=\"user-content-options\" class=\"anchor\" aria-label=\"Permalink: Options\" href=\"#options\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can change some of showdown's default behavior through options.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Setting options</h3><a id=\"user-content-setting-options\" class=\"anchor\" aria-label=\"Permalink: Setting options\" href=\"#setting-options\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Options can be set:</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Globally</h4><a id=\"user-content-globally\" class=\"anchor\" aria-label=\"Permalink: Globally\" href=\"#globally\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Setting a \"global\" option affects all instances of showdown</p>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"showdown.setOption('optionKey', 'value');\"><pre><span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">setOption</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'optionKey'</span><span class=\"pl-kos\">,</span> <span class=\"pl-s\">'value'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Locally</h4><a id=\"user-content-locally\" class=\"anchor\" aria-label=\"Permalink: Locally\" href=\"#locally\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Setting a \"local\" option only affects the specified Converter object.\nLocal options can be set:</p>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\"><strong>through the constructor</strong></p>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var converter = new showdown.Converter({optionKey: 'value'});\"><pre><span class=\"pl-k\">var</span> <span class=\"pl-s1\">converter</span> <span class=\"pl-c1\">=</span> <span class=\"pl-k\">new</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-c1\">Converter</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">{</span><span class=\"pl-c1\">optionKey</span>: <span class=\"pl-s\">'value'</span><span class=\"pl-kos\">}</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>through the setOption() method</strong></p>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var converter = new showdown.Converter();\nconverter.setOption('optionKey', 'value');\"><pre><span class=\"pl-k\">var</span> <span class=\"pl-s1\">converter</span> <span class=\"pl-c1\">=</span> <span class=\"pl-k\">new</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-c1\">Converter</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span>\n<span class=\"pl-s1\">converter</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">setOption</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'optionKey'</span><span class=\"pl-kos\">,</span> <span class=\"pl-s\">'value'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n</li>\n</ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Getting an option</h3><a id=\"user-content-getting-an-option\" class=\"anchor\" aria-label=\"Permalink: Getting an option\" href=\"#getting-an-option\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Showdown provides 2 methods (both local and global) to retrieve previous set options.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">getOption()</h4><a id=\"user-content-getoption\" class=\"anchor\" aria-label=\"Permalink: getOption()\" href=\"#getoption\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"// Global\nvar myOption = showdown.getOption('optionKey');\n\n//Local\nvar myOption = converter.getOption('optionKey');\"><pre><span class=\"pl-c\">// Global</span>\n<span class=\"pl-k\">var</span> <span class=\"pl-s1\">myOption</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">getOption</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'optionKey'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span>\n\n<span class=\"pl-c\">//Local</span>\n<span class=\"pl-k\">var</span> <span class=\"pl-s1\">myOption</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">converter</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">getOption</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'optionKey'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">getOptions()</h4><a id=\"user-content-getoptions\" class=\"anchor\" aria-label=\"Permalink: getOptions()\" href=\"#getoptions\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"// Global\nvar showdownGlobalOptions = showdown.getOptions();\n\n//Local\nvar thisConverterSpecificOptions = converter.getOptions();\"><pre><span class=\"pl-c\">// Global</span>\n<span class=\"pl-k\">var</span> <span class=\"pl-s1\">showdownGlobalOptions</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">getOptions</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span>\n\n<span class=\"pl-c\">//Local</span>\n<span class=\"pl-k\">var</span> <span class=\"pl-s1\">thisConverterSpecificOptions</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">converter</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">getOptions</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Retrieve the default options</h3><a id=\"user-content-retrieve-the-default-options\" class=\"anchor\" aria-label=\"Permalink: Retrieve the default options\" href=\"#retrieve-the-default-options\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can get showdown's default options with:</p>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var defaultOptions = showdown.getDefaultOptions();\"><pre><span class=\"pl-k\">var</span> <span class=\"pl-s1\">defaultOptions</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">getDefaultOptions</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Valid Options</h3><a id=\"user-content-valid-options\" class=\"anchor\" aria-label=\"Permalink: Valid Options\" href=\"#valid-options\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\"><strong>omitExtraWLInCodeBlocks</strong>: (boolean) [default false] Omit the trailing newline in a code block. Ex:</p>\n<p dir=\"auto\">This:</p>\n<div class=\"highlight highlight-text-html-basic notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"&lt;code&gt;&lt;pre&gt;var foo = 'bar';\n&lt;/pre&gt;&lt;/code&gt;\"><pre><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">code</span><span class=\"pl-kos\">&gt;</span><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">pre</span><span class=\"pl-kos\">&gt;</span>var foo = 'bar';\n<span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">pre</span><span class=\"pl-kos\">&gt;</span><span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">code</span><span class=\"pl-kos\">&gt;</span></pre></div>\n<p dir=\"auto\">Becomes this:</p>\n<div class=\"highlight highlight-text-html-basic notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"&lt;code&gt;&lt;pre&gt;var foo = 'bar';&lt;/pre&gt;&lt;/code&gt;\"><pre><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">code</span><span class=\"pl-kos\">&gt;</span><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">pre</span><span class=\"pl-kos\">&gt;</span>var foo = 'bar';<span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">pre</span><span class=\"pl-kos\">&gt;</span><span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">code</span><span class=\"pl-kos\">&gt;</span></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>noHeaderId</strong>: (boolean) [default false] Disable the automatic generation of header ids.\nSetting to true overrides <strong>prefixHeaderId</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>customizedHeaderId</strong>: (boolean) [default false] Use text in curly braces as header id. <strong>(since v1.7.0)</strong>\nExample:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"## Sample header {real-id} will use real-id as id\"><pre class=\"notranslate\"><code>## Sample header {real-id} will use real-id as id\n</code></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>ghCompatibleHeaderId</strong>: (boolean) [default false] Generate header ids compatible with github style\n(spaces are replaced with dashes and a bunch of non alphanumeric chars are removed) <strong>(since v1.5.5)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>prefixHeaderId</strong>: (string/boolean) [default false] Add a prefix to the generated header ids.\nPassing a string will prefix that string to the header id. Setting to <code>true</code> will add a generic 'section' prefix.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>rawPrefixHeaderId</strong>: (boolean) [default false] Setting this option to true will prevent showdown from modifying the prefix.\nThis might result in malformed IDs (if, for instance, the \" char is used in the prefix).\nHas no effect if prefixHeaderId is set to false. <strong>(since v 1.7.3)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>rawHeaderId</strong>: (boolean) [default false] Remove only spaces, ' and \" from generated header ids (including prefixes),\nreplacing them with dashes (-). WARNING: This might result in malformed ids <strong>(since v1.7.3)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>headerLevelStart</strong>: (integer) [default 1] Set the header starting level. For instance, setting this to 3 means that</p>\n<div class=\"highlight highlight-text-md notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# foo\"><pre><span class=\"pl-mh\"># <span class=\"pl-en\">foo</span></span></pre></div>\n<p dir=\"auto\">will be parsed as</p>\n<div class=\"highlight highlight-text-html-basic notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"&lt;h3&gt;foo&lt;/h3&gt;\"><pre><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">h3</span><span class=\"pl-kos\">&gt;</span>foo<span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">h3</span><span class=\"pl-kos\">&gt;</span></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>parseImgDimensions</strong>: (boolean) [default false] Enable support for setting image dimensions from within markdown syntax.\nExamples:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"![foo](foo.jpg =100x80) simple, assumes units are in px\n![bar](bar.jpg =100x*) sets the height to &quot;auto&quot;\n![baz](baz.jpg =80%x5em) Image with width of 80% and height of 5em\"><pre class=\"notranslate\"><code>![foo](foo.jpg =100x80) simple, assumes units are in px\n![bar](bar.jpg =100x*) sets the height to \"auto\"\n![baz](baz.jpg =80%x5em) Image with width of 80% and height of 5em\n</code></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>simplifiedAutoLink</strong>: (boolean) [default false] Turning this option on will enable automatic linking to urls.\nThis means that:</p>\n<div class=\"highlight highlight-text-md notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"some text www.google.com\"><pre>some text <span class=\"pl-corl\">www.google.com</span></pre></div>\n<p dir=\"auto\">will be parsed as</p>\n<div class=\"highlight highlight-text-html-basic notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"&lt;p&gt;some text &lt;a href=&quot;www.google.com&quot;&gt;www.google.com&lt;/a&gt;\"><pre><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">p</span><span class=\"pl-kos\">&gt;</span>some text <span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">a</span> <span class=\"pl-c1\">href</span>=\"<span class=\"pl-s\">www.google.com</span>\"<span class=\"pl-kos\">&gt;</span>www.google.com<span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">a</span><span class=\"pl-kos\">&gt;</span></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><del><strong>excludeTrailingPunctuationFromURLs</strong>: (boolean) [default false] This option excludes trailing punctuation from autolinking urls.\nPunctuation excluded: <code>. ! ? ( )</code>. Only applies if <strong>simplifiedAutoLink</strong> option is set to <code>true</code>.</del></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>literalMidWordUnderscores</strong>: (boolean) [default false] Turning this on will stop showdown from interpreting\nunderscores in the middle of words as <code>&lt;em&gt;</code> and <code>&lt;strong&gt;</code> and instead treat them as literal underscores.</p>\n<p dir=\"auto\">Example:</p>\n<div class=\"highlight highlight-text-md notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"some text with__underscores__in middle\"><pre>some text with<span class=\"pl-s\">__</span>underscores<span class=\"pl-s\">__</span>in middle</pre></div>\n<p dir=\"auto\">will be parsed as</p>\n<div class=\"highlight highlight-text-html-basic notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"&lt;p&gt;some text with__underscores__in middle&lt;/p&gt;\"><pre><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">p</span><span class=\"pl-kos\">&gt;</span>some text with__underscores__in middle<span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">p</span><span class=\"pl-kos\">&gt;</span></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><del><strong>literalMidWordAsterisks</strong>: (boolean) [default false] Turning this on will stop showdown from interpreting asterisks\nin the middle of words as <code>&lt;em&gt;</code> and <code>&lt;strong&gt;</code> and instead treat them as literal asterisks.</del></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>strikethrough</strong>: (boolean) [default false] Enable support for strikethrough syntax.\n<code>~~strikethrough~~</code> as <code>&lt;del&gt;strikethrough&lt;/del&gt;</code></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>tables</strong>: (boolean) [default false] Enable support for tables syntax. Example:</p>\n<div class=\"highlight highlight-text-md notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"| h1 | h2 | h3 |\n|:------|:-------:|--------:|\n| 100 | [a][1] | ![b][2] |\n| *foo* | **bar** | ~~baz~~ |\"><pre><span class=\"pl-ml\">|</span> h1 <span class=\"pl-ml\">|</span> h2 <span class=\"pl-ml\">|</span> h3 <span class=\"pl-ml\">|</span>\n<span class=\"pl-ml\">|</span>:------<span class=\"pl-ml\">|</span>:-------:<span class=\"pl-ml\">|</span>--------:<span class=\"pl-ml\">|</span>\n<span class=\"pl-ml\">|</span> 100 <span class=\"pl-ml\">|</span> <span class=\"pl-s\">[</span>a<span class=\"pl-s\">]</span><span class=\"pl-s\">[</span><span class=\"pl-en\">1</span><span class=\"pl-s\">]</span> <span class=\"pl-ml\">|</span> <span class=\"pl-s\">![</span>b<span class=\"pl-s\">]</span><span class=\"pl-s\">[</span><span class=\"pl-en\">2</span><span class=\"pl-s\">]</span> <span class=\"pl-ml\">|</span>\n<span class=\"pl-ml\">|</span> <span class=\"pl-s\">*</span>foo<span class=\"pl-s\">*</span> <span class=\"pl-ml\">|</span> <span class=\"pl-s\">**</span>bar<span class=\"pl-s\">**</span> <span class=\"pl-ml\">|</span> <span class=\"pl-s\">~~</span>baz<span class=\"pl-s\">~~</span> <span class=\"pl-ml\">|</span></pre></div>\n<p dir=\"auto\">See the wiki for more info</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>tablesHeaderId</strong>: (boolean) [default false] If enabled adds an id property to table headers tags.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>ghCodeBlocks</strong>: (boolean) [default true] Enable support for GFM code block style.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>tasklists</strong>: (boolean) [default false] Enable support for GFM tasklists. Example:</p>\n<div class=\"highlight highlight-text-md notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\" - [x] This task is done\n - [ ] This is still pending\"><pre> <span class=\"pl-v\">-</span> <span class=\"pl-k\">[x]</span> This task is done\n <span class=\"pl-v\">-</span> <span class=\"pl-k\">[ ]</span> This is still pending</pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>smoothLivePreview</strong>: (boolean) [default false] Prevents weird effects in live previews due to incomplete input</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>smartIndentationFix</strong>: (boolean) [default false] Tries to smartly fix indentation problems related to es6 template\nstrings in the midst of indented code.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>disableForced4SpacesIndentedSublists</strong>: (boolean) [default false] Disables the requirement of indenting sublists\nby 4 spaces for them to be nested, effectively reverting to the old behavior where 2 or 3 spaces were enough.\n<strong>(since v1.5.0)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>simpleLineBreaks</strong>: (boolean) [default false] Parses line breaks as <code>&lt;br&gt;</code>, without\nneeding 2 spaces at the end of the line <strong>(since v1.5.1)</strong></p>\n<div class=\"highlight highlight-text-md notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"a line \nwrapped in two\"><pre>a line \nwrapped in two</pre></div>\n<p dir=\"auto\">turns into:</p>\n<div class=\"highlight highlight-text-html-basic notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"&lt;p&gt;a line&lt;br&gt;\nwrapped in two&lt;/p&gt;\"><pre><span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">p</span><span class=\"pl-kos\">&gt;</span>a line<span class=\"pl-kos\">&lt;</span><span class=\"pl-ent\">br</span><span class=\"pl-kos\">&gt;</span>\nwrapped in two<span class=\"pl-kos\">&lt;/</span><span class=\"pl-ent\">p</span><span class=\"pl-kos\">&gt;</span></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>requireSpaceBeforeHeadingText</strong>: (boolean) [default false] Makes adding a space between <code>#</code> and the header text mandatory <strong>(since v1.5.3)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>ghMentions</strong>: (boolean) [default false] Enables github @mentions, which link to the username mentioned <strong>(since v1.6.0)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>ghMentionsLink</strong>: (string) [default <code>https://github.com/{u}</code>] Changes the link generated by @mentions.\nShowdown will replace <code>{u}</code> with the username. Only applies if ghMentions option is enabled.\nExample: <code>@tivie</code> with ghMentionsOption set to <code>//mysite.com/{u}/profile</code> will result in <code>&lt;a href=\"//mysite.com/tivie/profile\"&gt;@tivie&lt;/a&gt;</code></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>encodeEmails</strong>: (boolean) [default true] Enable e-mail addresses encoding through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities. (since v1.6.1)</p>\n<p dir=\"auto\">NOTE: Prior to version 1.6.1, emails would always be obfuscated through dec and hex encoding.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>openLinksInNewWindow</strong>: (boolean) [default false] Open all links in new windows\n(by adding the attribute <code>target=\"_blank\"</code> to <code>&lt;a&gt;</code> tags) <strong>(since v1.7.0)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>backslashEscapesHTMLTags</strong>: (boolean) [default false] Support for HTML Tag escaping. ex: <code>\\&lt;div&gt;foo\\&lt;/div&gt;</code> <strong>(since v1.7.2)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>emoji</strong>: (boolean) [default false] Enable emoji support. Ex: <code>this is a :smile: emoji</code>\nFor more info on available emojis, see <a href=\"https://github.com/showdownjs/showdown/wiki/Emojis\">https://github.com/showdownjs/showdown/wiki/Emojis</a> <strong>(since v.1.8.0)</strong></p>\n</li>\n<li>\n<p dir=\"auto\"><strong>underline</strong>: (boolean) [default false] <em><strong>EXPERIMENTAL FEATURE</strong></em> Enable support for underline.\nSyntax is <strong>double</strong> or <strong>triple</strong> <strong>underscores</strong> ex: <code>__underlined word__</code>. With this option enabled, underscores are no longer parses into <code>&lt;em&gt;</code> and <code>&lt;strong&gt;</code>.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>ellipsis</strong>: (boolean) [default true] Replaces three dots with the ellipsis unicode character.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>completeHTMLDocument</strong>: (boolean) [default false] Outputs a complete html document,\nincluding <code>&lt;html&gt;</code>, <code>&lt;head&gt;</code> and <code>&lt;body&gt;</code> tags' instead of an HTML fragment. (since v.1.8.5)</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>metadata</strong>: (boolean) [default false] Enable support for document metadata (defined at the top of the document\nbetween <code>«««</code> and <code>»»»</code> or between <code>---</code> and <code>---</code>). (since v.1.8.5)</p>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var conv = new showdown.Converter({metadata: true});\nvar html = conv.makeHtml(someMd);\nvar metadata = conv.getMetadata(); // returns an object with the document metadata\"><pre><span class=\"pl-k\">var</span> <span class=\"pl-s1\">conv</span> <span class=\"pl-c1\">=</span> <span class=\"pl-k\">new</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-c1\">Converter</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">{</span><span class=\"pl-c1\">metadata</span>: <span class=\"pl-c1\">true</span><span class=\"pl-kos\">}</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span>\n<span class=\"pl-k\">var</span> <span class=\"pl-s1\">html</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">conv</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">makeHtml</span><span class=\"pl-kos\">(</span><span class=\"pl-s1\">someMd</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span>\n<span class=\"pl-k\">var</span> <span class=\"pl-s1\">metadata</span> <span class=\"pl-c1\">=</span> <span class=\"pl-s1\">conv</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">getMetadata</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span> <span class=\"pl-c\">// returns an object with the document metadata</span></pre></div>\n</li>\n<li>\n<p dir=\"auto\"><strong>splitAdjacentBlockquotes</strong>: (boolean) [default false] Split adjacent blockquote blocks.(since v.1.8.6)</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>moreStyling</strong>: (boolean) [default false] Adds some useful classes for css styling. (since v2.0.1)</p>\n<ul dir=\"auto\">\n<li>Tasklists: Adds the class <code>task-list-item-complete</code> to completed tasks items in GFM tasklists.</li>\n</ul>\n</li>\n</ul>\n<p dir=\"auto\"><strong>NOTE</strong>: Please note that until <strong>version 1.6.0</strong>, all of these options are <em><strong>DISABLED</strong></em> by default in the cli tool.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Flavors</h2><a id=\"user-content-flavors\" class=\"anchor\" aria-label=\"Permalink: Flavors\" href=\"#flavors\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can also use flavors or presets to set the correct options automatically, so that showdown behaves like popular markdown flavors.</p>\n<p dir=\"auto\">Currently, the following flavors are available:</p>\n<ul dir=\"auto\">\n<li>original - original markdown flavor as in <a href=\"https://daringfireball.net/projects/markdown/\" rel=\"nofollow\">John Gruber's spec</a></li>\n<li>vanilla - showdown base flavor (as from v1.3.1)</li>\n<li>github - GFM (GitHub Flavored Markdown)</li>\n</ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Global</h3><a id=\"user-content-global\" class=\"anchor\" aria-label=\"Permalink: Global\" href=\"#global\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"showdown.setFlavor('github');\"><pre><span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">setFlavor</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'github'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Instance</h3><a id=\"user-content-instance\" class=\"anchor\" aria-label=\"Permalink: Instance\" href=\"#instance\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"converter.setFlavor('github');\"><pre><span class=\"pl-s1\">converter</span><span class=\"pl-kos\">.</span><span class=\"pl-en\">setFlavor</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'github'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">CLI Tool</h2><a id=\"user-content-cli-tool\" class=\"anchor\" aria-label=\"Permalink: CLI Tool\" href=\"#cli-tool\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Showdown also comes bundled with a Command Line Interface tool. You can check the <a href=\"https://github.com/showdownjs/showdown/wiki/CLI-tool\">CLI wiki page</a> for more info</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Integration with AngularJS</h2><a id=\"user-content-integration-with-angularjs\" class=\"anchor\" aria-label=\"Permalink: Integration with AngularJS\" href=\"#integration-with-angularjs\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">ShowdownJS project also provides seamlessly integration with AngularJS via a \"plugin\".\nPlease visit <a href=\"https://github.com/showdownjs/ngShowdown\">https://github.com/showdownjs/ngShowdown</a> for more information.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Integration with TypeScript</h2><a id=\"user-content-integration-with-typescript\" class=\"anchor\" aria-label=\"Permalink: Integration with TypeScript\" href=\"#integration-with-typescript\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">If you're using TypeScript you maybe want to use the types from <a href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/showdown\">DefinitelyTyped</a></p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Integration with SystemJS/JSPM</h2><a id=\"user-content-integration-with-systemjsjspm\" class=\"anchor\" aria-label=\"Permalink: Integration with SystemJS/JSPM\" href=\"#integration-with-systemjsjspm\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Integration with SystemJS can be obtained via the third party <a href=\"https://github.com/guybedford/system-md\">\"system-md\" plugin</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Integration with VueJS</h2><a id=\"user-content-integration-with-vuejs\" class=\"anchor\" aria-label=\"Permalink: Integration with VueJS\" href=\"#integration-with-vuejs\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">To use ShowdownJS as a Vue component quickly, you can check <a href=\"https://vue-showdown.js.org/\" rel=\"nofollow\">vue-showdown</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">XSS vulnerability</h2><a id=\"user-content-xss-vulnerability\" class=\"anchor\" aria-label=\"Permalink: XSS vulnerability\" href=\"#xss-vulnerability\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Showdown doesn't sanitize the input. This is by design since markdown relies on it to allow certain features to be correctly parsed into HTML.\nThis, however, means XSS injection is quite possible.</p>\n<p dir=\"auto\">Please refer to the wiki article <a href=\"https://github.com/showdownjs/showdown/wiki/Markdown's-XSS-Vulnerability-(and-how-to-mitigate-it)\">Markdown's XSS Vulnerability (and how to mitigate it)</a>\nfor more information.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Extensions</h2><a id=\"user-content-extensions\" class=\"anchor\" aria-label=\"Permalink: Extensions\" href=\"#extensions\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Showdown allows additional functionality to be loaded via extensions. (you can find a list of known showdown extensions <a href=\"https://github.com/showdownjs/showdown/wiki/extensions\">here</a>)\nYou can also find a boilerplate, to create your own extensions in <a href=\"https://github.com/showdownjs/extension-boilerplate\">this repository</a></p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Client-side Extension Usage</h3><a id=\"user-content-client-side-extension-usage\" class=\"anchor\" aria-label=\"Permalink: Client-side Extension Usage\" href=\"#client-side-extension-usage\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"&lt;script src=&quot;showdown.js&quot; /&gt;\n&lt;script src=&quot;twitter-extension.js&quot; /&gt;\n\nvar converter = new showdown.Converter({ extensions: ['twitter'] });\"><pre><span class=\"pl-c1\">&lt;</span><span class=\"pl-ent\">script</span> <span class=\"pl-c1\">src</span><span class=\"pl-c1\">=</span><span class=\"pl-s\">\"showdown.js\"</span> <span class=\"pl-c1\">/</span><span class=\"pl-c1\">&gt;</span>\n<span class=\"pl-c1\">&lt;</span><span class=\"pl-s1\">script</span> <span class=\"pl-s1\">src</span><span class=\"pl-c1\">=</span><span class=\"pl-s\">\"twitter-extension.js\"</span> <span class=\"pl-c1\">/</span><span class=\"pl-s1\"></span><span class=\"pl-c1\">&gt;</span>\n\n<span class=\"pl-s1\">var</span> <span class=\"pl-s1\">converter</span> <span class=\"pl-c1\">=</span> <span class=\"pl-k\">new</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-c1\">Converter</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">{</span> <span class=\"pl-c1\">extensions</span>: <span class=\"pl-kos\">[</span><span class=\"pl-s\">'twitter'</span><span class=\"pl-kos\">]</span> <span class=\"pl-kos\">}</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Server-side Extension Usage</h3><a id=\"user-content-server-side-extension-usage\" class=\"anchor\" aria-label=\"Permalink: Server-side Extension Usage\" href=\"#server-side-extension-usage\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"var showdown = require('showdown'),\n myExtension = require('myExtension'),\n converter = new showdown.Converter({ extensions: ['myExtension'] });\"><pre><span class=\"pl-k\">var</span> <span class=\"pl-s1\">showdown</span> <span class=\"pl-c1\">=</span> <span class=\"pl-en\">require</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'showdown'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">,</span>\n <span class=\"pl-s1\">myExtension</span> <span class=\"pl-c1\">=</span> <span class=\"pl-en\">require</span><span class=\"pl-kos\">(</span><span class=\"pl-s\">'myExtension'</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">,</span>\n <span class=\"pl-s1\">converter</span> <span class=\"pl-c1\">=</span> <span class=\"pl-k\">new</span> <span class=\"pl-s1\">showdown</span><span class=\"pl-kos\">.</span><span class=\"pl-c1\">Converter</span><span class=\"pl-kos\">(</span><span class=\"pl-kos\">{</span> <span class=\"pl-c1\">extensions</span>: <span class=\"pl-kos\">[</span><span class=\"pl-s\">'myExtension'</span><span class=\"pl-kos\">]</span> <span class=\"pl-kos\">}</span><span class=\"pl-kos\">)</span><span class=\"pl-kos\">;</span></pre></div>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Building</h2><a id=\"user-content-building\" class=\"anchor\" aria-label=\"Permalink: Building\" href=\"#building\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Building your clone of the repository is easy.</p>\n<blockquote>\n<p dir=\"auto\">Prerequesites: <a href=\"https://nodejs.org/\" rel=\"nofollow\">Node.js</a> v12, <a href=\"https://www.npmjs.com/package/npm\" rel=\"nofollow\">npm</a> and <a href=\"https://www.npmjs.com/package/npx\" rel=\"nofollow\">npx</a> must be installed.</p>\n</blockquote>\n<ol dir=\"auto\">\n<li>\n<p dir=\"auto\">run <code>npm install</code>.</p>\n</li>\n<li>\n<p dir=\"auto\">run <code>npx grunt build</code> (see <a href=\"/showdownjs/showdown/blob/master/Gruntfile.js\"><code>Gruntfile.js</code></a>). This command:</p>\n<ol dir=\"auto\">\n<li>Cleans the repo.</li>\n<li>Checks code quality (<a href=\"https://jshint.com/\" rel=\"nofollow\">JSHint</a> and <a href=\"https://eslint.org/\" rel=\"nofollow\">ESLint</a>).</li>\n<li>Runs tests.</li>\n<li>Creates the <a href=\"/showdownjs/showdown/blob/master/showdown.js\">distributable</a> and <a href=\"/showdownjs/showdown/blob/master/showdown.min.js\">minified</a> files in the <a href=\"/showdownjs/showdown/blob/master/dist\"><code>dist</code></a> folder.</li>\n</ol>\n</li>\n</ol>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Tests</h2><a id=\"user-content-tests\" class=\"anchor\" aria-label=\"Permalink: Tests\" href=\"#tests\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">A suite of tests is available which require Node.js. Once Node is installed, run the following command from\nthe project root to install the dependencies:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"npm install\"><pre class=\"notranslate\"><code>npm install\n</code></pre></div>\n<p dir=\"auto\">Once installed the tests can be run from the project root using:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"npm test\"><pre class=\"notranslate\"><code>npm test\n</code></pre></div>\n<p dir=\"auto\">New test cases can easily be added. Create a markdown file (ending in <code>.md</code>) which contains the markdown to test.\nCreate a <code>.html</code> file of the exact same name. It will automatically be tested when the tests are executed with <code>mocha</code>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Contributing</h2><a id=\"user-content-contributing\" class=\"anchor\" aria-label=\"Permalink: Contributing\" href=\"#contributing\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">If you wish to contribute please read the following quick guide.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Want a Feature?</h3><a id=\"user-content-want-a-feature\" class=\"anchor\" aria-label=\"Permalink: Want a Feature?\" href=\"#want-a-feature\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can request a new feature by submitting an issue. If you would like to implement a new feature feel free to issue a\nPull Request.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Pull requests (PRs)</h3><a id=\"user-content-pull-requests-prs\" class=\"anchor\" aria-label=\"Permalink: Pull requests (PRs)\" href=\"#pull-requests-prs\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">PRs are awesome. However, before you submit your pull request consider the following guidelines:</p>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\">Search GitHub for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.</p>\n</li>\n<li>\n<p dir=\"auto\">When issuing PRs that change code, make your changes in a new git branch based on <strong>develop</strong>:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"git checkout -b my-fix-branch develop\"><pre>git checkout -b my-fix-branch develop</pre></div>\n</li>\n<li>\n<p dir=\"auto\">Run the full test suite before submitting and make sure all tests pass (obviously =P).</p>\n</li>\n<li>\n<p dir=\"auto\">Try to follow our <a href=\"https://github.com/showdownjs/code-style/blob/master/README.md\"><strong>coding style rules</strong></a>. Breaking them prevents the PR to pass the tests.</p>\n</li>\n<li>\n<p dir=\"auto\">Refrain from fixing multiple issues in the same pull request. It's preferable to open multiple small PRs instead of one\nhard to review big one.</p>\n</li>\n<li>\n<p dir=\"auto\">If the PR introduces a new feature or fixes an issue, <strong>please add the appropriate test case</strong>.</p>\n</li>\n<li>\n<p dir=\"auto\">We use <a href=\"https://www.conventionalcommits.org/\" rel=\"nofollow\">conventional commit</a> notes to generate the changelog that follow the conventional changelog spec. It's extremely helpful if your commit messages adhere to these <a href=\"https://www.conventionalcommits.org/\" rel=\"nofollow\">Commit Guidelines</a>.</p>\n</li>\n<li>\n<p dir=\"auto\">Don't forget to add your name to the <a href=\"https://github.com/showdownjs/showdown/blob/master/CREDITS.md\">CREDITS.md</a> file. We like to give credit were it's due.</p>\n</li>\n<li>\n<p dir=\"auto\">If we suggest changes then:</p>\n<ul dir=\"auto\">\n<li>Make the required updates.</li>\n<li>Re-run the test suite to ensure tests are still passing.</li>\n<li>Rebase your branch and force push to your GitHub repository (this will update your Pull Request):</li>\n</ul>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"git rebase develop -i\ngit push origin my-fix-branch -f\"><pre>git rebase develop -i\ngit push origin my-fix-branch -f</pre></div>\n</li>\n<li>\n<p dir=\"auto\">After your pull request is merged, you can safely delete your branch.</p>\n</li>\n</ul>\n<p dir=\"auto\">If you have time to contribute to this project, we feel obliged that you get credit for it.\nThese rules enable us to review your PR faster and will give you appropriate credit in your GitHub profile.\nWe thank you in advance for your contribution!</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Joining the team</h3><a id=\"user-content-joining-the-team\" class=\"anchor\" aria-label=\"Permalink: Joining the team\" href=\"#joining-the-team\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">We're looking for members to help maintaining Showdown.\nPlease see <a href=\"https://github.com/showdownjs/showdown/issues/114\" data-hovercard-type=\"issue\" data-hovercard-url=\"/showdownjs/showdown/issues/114/hovercard\">this issue</a> to express interest or comment on this note.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Credits</h2><a id=\"user-content-credits\" class=\"anchor\" aria-label=\"Permalink: Credits\" href=\"#credits\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Full credit list at <a href=\"https://github.com/showdownjs/showdown/blob/master/CREDITS.md\">https://github.com/showdownjs/showdown/blob/master/CREDITS.md</a></p>\n<p dir=\"auto\">Showdown is powered by:<br>\n<a href=\"https://www.jetbrains.com/webstorm/\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/530b30b05b0715c1483b80675b97e08a598649d4cef4fb43d84e12a6ed984749/68747470733a2f2f7777772e6a6574627261696e732e636f6d2f77656273746f726d2f646f63756d656e746174696f6e2f646f63732f6c6f676f5f77656273746f726d2e706e67\" alt=\"webstorm\" data-canonical-src=\"https://www.jetbrains.com/webstorm/documentation/docs/logo_webstorm.png\" style=\"max-width: 100%;\"></a></p>\n</article>",
"loaded": true,
"timedOut": false,
"errorMessage": null,
"headerInfo": {
"toc": [
{
"level": 2,
"text": "Live DEMO",
"anchor": "live-demo",
"htmlText": "Live DEMO"
},
{
"level": 2,
"text": "License",
"anchor": "license",
"htmlText": "License"
},
{
"level": 2,
"text": "Who uses Showdown (or a fork)",
"anchor": "who-uses-showdown-or-a-fork",
"htmlText": "Who uses Showdown (or a fork)"
},
{
"level": 2,
"text": "Installation",
"anchor": "installation",
"htmlText": "Installation"
},
{
"level": 3,
"text": "Download tarball",
"anchor": "download-tarball",
"htmlText": "Download tarball"
},
{
"level": 3,
"text": "Bower",
"anchor": "bower",
"htmlText": "Bower"
},
{
"level": 3,
"text": "npm (server-side)",
"anchor": "npm-server-side",
"htmlText": "npm (server-side)"
},
{
"level": 3,
"text": "NuGet package",
"anchor": "nuget-package",
"htmlText": "NuGet package"
},
{
"level": 3,
"text": "CDN",
"anchor": "cdn",
"htmlText": "CDN"
},
{
"level": 2,
"text": "Browser Compatibility",
"anchor": "browser-compatibility",
"htmlText": "Browser Compatibility"
},
{
"level": 2,
"text": "Node compatibility",
"anchor": "node-compatibility",
"htmlText": "Node compatibility"
},
{
"level": 2,
"text": "Legacy version",
"anchor": "legacy-version",
"htmlText": "Legacy version"
},
{
"level": 2,
"text": "Changelog",
"anchor": "changelog",
"htmlText": "Changelog"
},
{
"level": 2,
"text": "Extended documentation",
"anchor": "extended-documentation",
"htmlText": "Extended documentation"
},
{
"level": 2,
"text": "Quick Example",
"anchor": "quick-example",
"htmlText": "Quick Example"
},
{
"level": 3,
"text": "Node",
"anchor": "node",
"htmlText": "Node"
},
{
"level": 3,
"text": "Browser",
"anchor": "browser",
"htmlText": "Browser"
},
{
"level": 3,
"text": "Output",
"anchor": "output",
"htmlText": "Output"
},
{
"level": 2,
"text": "Options",
"anchor": "options",
"htmlText": "Options"
},
{
"level": 3,
"text": "Setting options",
"anchor": "setting-options",
"htmlText": "Setting options"
},
{
"level": 4,
"text": "Globally",
"anchor": "globally",
"htmlText": "Globally"
},
{
"level": 4,
"text": "Locally",
"anchor": "locally",
"htmlText": "Locally"
},
{
"level": 3,
"text": "Getting an option",
"anchor": "getting-an-option",
"htmlText": "Getting an option"
},
{
"level": 4,
"text": "getOption()",
"anchor": "getoption",
"htmlText": "getOption()"
},
{
"level": 4,
"text": "getOptions()",
"anchor": "getoptions",
"htmlText": "getOptions()"
},
{
"level": 3,
"text": "Retrieve the default options",
"anchor": "retrieve-the-default-options",
"htmlText": "Retrieve the default options"
},
{
"level": 3,
"text": "Valid Options",
"anchor": "valid-options",
"htmlText": "Valid Options"
},
{
"level": 2,
"text": "Flavors",
"anchor": "flavors",
"htmlText": "Flavors"
},
{
"level": 3,
"text": "Global",
"anchor": "global",
"htmlText": "Global"
},
{
"level": 3,
"text": "Instance",
"anchor": "instance",
"htmlText": "Instance"
},
{
"level": 2,
"text": "CLI Tool",
"anchor": "cli-tool",
"htmlText": "CLI Tool"
},
{
"level": 2,
"text": "Integration with AngularJS",
"anchor": "integration-with-angularjs",
"htmlText": "Integration with AngularJS"
},
{
"level": 2,
"text": "Integration with TypeScript",
"anchor": "integration-with-typescript",
"htmlText": "Integration with TypeScript"
},
{
"level": 2,
"text": "Integration with SystemJS/JSPM",
"anchor": "integration-with-systemjsjspm",
"htmlText": "Integration with SystemJS/JSPM"
},
{
"level": 2,
"text": "Integration with VueJS",
"anchor": "integration-with-vuejs",
"htmlText": "Integration with VueJS"
},
{
"level": 2,
"text": "XSS vulnerability",
"anchor": "xss-vulnerability",
"htmlText": "XSS vulnerability"
},
{
"level": 2,
"text": "Extensions",
"anchor": "extensions",
"htmlText": "Extensions"
},
{
"level": 3,
"text": "Client-side Extension Usage",
"anchor": "client-side-extension-usage",
"htmlText": "Client-side Extension Usage"
},
{
"level": 3,
"text": "Server-side Extension Usage",
"anchor": "server-side-extension-usage",
"htmlText": "Server-side Extension Usage"
},
{
"level": 2,
"text": "Building",
"anchor": "building",
"htmlText": "Building"
},
{
"level": 2,
"text": "Tests",
"anchor": "tests",
"htmlText": "Tests"
},
{
"level": 2,
"text": "Contributing",
"anchor": "contributing",
"htmlText": "Contributing"
},
{
"level": 3,
"text": "Want a Feature?",
"anchor": "want-a-feature",
"htmlText": "Want a Feature?"
},
{
"level": 3,
"text": "Pull requests (PRs)",
"anchor": "pull-requests-prs",
"htmlText": "Pull requests (PRs)"
},
{
"level": 3,
"text": "Joining the team",
"anchor": "joining-the-team",
"htmlText": "Joining the team"
},
{
"level": 2,
"text": "Credits",
"anchor": "credits",
"htmlText": "Credits"
}
],
"siteNavLoginPath": "/login?return_to=https%3A%2F%2Fgithub.com%2Fshowdownjs%2Fshowdown"
}
},
{
"displayName": "LICENSE",
"repoName": "showdown",
"refName": "master",
"path": "LICENSE",
"preferredFileType": "license",
"tabName": "MIT",
"richText": null,
"loaded": false,
"timedOut": false,
"errorMessage": null,
"headerInfo": {
"toc": null,
"siteNavLoginPath": "/login?return_to=https%3A%2F%2Fgithub.com%2Fshowdownjs%2Fshowdown"
}
},
{
"displayName": "SECURITY.md",
"repoName": "showdown",
"refName": "master",
"path": "SECURITY.md",
"preferredFileType": "security",
"tabName": "Security",
"richText": null,
"loaded": false,
"timedOut": false,
"errorMessage": null,
"headerInfo": {
"toc": null,
"siteNavLoginPath": "/login?return_to=https%3A%2F%2Fgithub.com%2Fshowdownjs%2Fshowdown"
}
}
],
"overviewFilesProcessingTime": 39.131805
}
},
"appPayload": {
"helpUrl": "https://docs.github.com",
"findFileWorkerPath": "/assets-cdn/worker/find-file-worker-a007d7f370d6.js",
"findInFileWorkerPath": "/assets-cdn/worker/find-in-file-worker-d0f0ff069004.js",
"githubDevUrl": null,
"enabled_features": {
"code_nav_ui_events": false,
"copilot_conversational_ux": false,
"react_blob_overlay": false,
"copilot_conversational_ux_embedding_update": false,
"copilot_popover_file_editor_header": true,
"copilot_smell_icebreaker_ux": true,
"copilot_workspace": false
}
}
}
}
{
"accept-ranges": "bytes",
"cache-control": "max-age=0, private, must-revalidate",
"content-encoding": "gzip",
"content-security-policy": "default-src 'none'; base-uri 'self'; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com api.githubcopilot.com objects-origin.githubusercontent.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/",
"content-type": "text/html; charset=utf-8",
"date": "Mon, 22 Apr 2024 09:42:56 GMT",
"etag": "91f6456f1446471dd38c87f6e5aa6b68",
"referrer-policy": "no-referrer-when-downgrade",
"server": "GitHub.com",
"set-cookie": "logged_in=no; Path=/; Domain=github.com; Expires=Tue, 22 Apr 2025 09:42:55 GMT; HttpOnly; Secure; SameSite=Lax",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"transfer-encoding": "chunked",
"vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-github-request-id": "D138:241D1D:9B91383:DA5BD9E:6626311F",
"x-xss-protection": "0"
}