Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

securemark

falsandtru17UNLICENSED0.282.0TypeScript support: included

Secure markdown renderer working on browsers for user input data.

markdown, latex

readme

Securemark

CI

Secure markdown renderer working on browsers for user input data.

Features

  • Secure DOM rendering.
  • Declarative syntax.
  • Recursive parsing.
  • Incremental update.
  • Progressive rendering.
  • Unblinking rendering.
  • Large document support.
  • Syntax highlight with PrismJS.
  • LaTeX rendering with MathJax.
  • Figure, Annotation, and Reference syntax.
  • Index generation for headings, terms, and figures.
  • Shortlink syntax for local references of indexes and figures.
  • Auto numbering of figures, annotations, and references.
  • Cross reference generation for annotations and references.
  • Table of contents.

Media

  • Twitter
  • YouTube
  • PDF (.pdf)
  • Video (.webm, .ogv)
  • Audio (.oga, .ogg)
  • Images

APIs

index.d.ts

Syntax

markdown.d.ts

  • Heading (#)
  • UList (-)
  • OList (1., I., A., A-1., (1), (i), (a)-1)
  • DList (~)
  • Table (| |)
  • Blockquote (>, !>)
  • Preformattedtext (`)
  • Pagebreak (===)
  • Inline markups (, *, `, []{}, {}, ![]{}, !{}, [](), ++, ~~, (()), ...)
  • Inline HTML tags (<bdi>, <bdo>)
  • Autolink (https://host, user@host, @user)
  • Shortmedia (!https://host/image.png, !https://youtu.be/...)
  • Syntex highlight (`lang filename)
  • LaTeX ($expr$, ${expr}$, $$)
  • Index ([#index], # title [|signature], ~ term [|signature])
  • Figure (~~~figure $fig-name)
  • Label ($fig-name, [$fig-name])
  • Annotation (((annotation)))
  • Reference ([[reference]])
  • Channel (@user#tag)
  • Hashtag (#tag)
  • Template ({{ template }})
  • Remark ([% remark %])

Operator precedence

P Operators
9 \n, \\n
8 `
6 (()), [[]], {{}}, ${}$
5 [% %]
4 <tag></tag>
3 $, "
2 (), [], {}
1 , *, ==, ++, ~~

Dependencies

  • PrismJS
  • MathJax
  • jQuery (for Ajax)
  • DOMPurify

Browsers

  • Chrome
  • Firefox
  • Edge (Chromium edition only)
  • Safari (Awaiting the support of lookbehind assertion in regular expressions)

License

Free to use this product only for private or offline usage under the Mozilla Public License 2.0 and the Apache License 2.0.

changelog

Changelog

0.282.0

  • Change identifiers.

0.281.4

  • Fix identifiers.

0.281.3

  • Refactoring.

0.281.2

  • Fix identifiers.

0.281.1

  • Fix identifiers.

0.281.0

  • Change identifiers.
  • Fix note processing.

0.280.9

  • Refactoring.

0.280.8

  • Fix dependencies.

0.280.7

  • Refactoring.

0.280.6

  • Refactoring.

0.280.5

  • Refactoring.

0.280.4

  • Refactoring.

0.280.3

  • Refactoring.

0.280.2

  • Refactoring.

0.280.1

  • Refactoring.

0.280.0

  • Decrease resource size to 20,000.
  • Change operator precedence of template syntax to 6.
  • Swap operator precedence of html syntax and remark syntax.

0.279.1

  • Refactoring.

0.279.0

  • Change media syntax not to be included in inline syntax.

0.278.0

  • Extend account syntax.

0.277.0

  • Revert emphasis syntax and strong syntax.
  • Rename comment syntax to remark syntax.

0.276.5

  • Refactoring.

0.276.4

  • Refactoring.

0.276.3

  • Refactoring.

0.276.2

  • Refactoring.

0.276.1

  • Refactoring.

0.276.0

  • Change indexer syntax.

0.275.2

  • Fix identifiers.

0.275.1

  • Fix identifiers.

0.275.0

  • Fix identifiers.

0.274.4

  • Fix list item parser.

0.274.3

  • Fix abbr parser.

0.274.2

  • Fix identifiers of notes.

0.274.1

  • Fix identifiers of notes.

0.274.0

  • Change identifiers of notes.

0.273.0

  • Rename ParserSettings.footnotes to ParserSettings.notes.

0.272.0

  • Change footnote identifiers.

0.271.0

  • Extend table highlight syntax.

0.270.2

  • Refactoring.

0.270.1

  • Refactoring.

0.270.0

  • Change the operator precedence of double quotation to 3.

0.269.1

  • Refactoring.

0.269.0

  • Change media syntax to line-level syntax.

0.268.2

  • Refactoring.

0.268.1

  • Refactoring.

0.268.0

  • Add lineurl syntax.

0.267.0

  • Change horizontalrule syntax to pagebreak syntax.

0.266.0

  • Change index schemas.
  • Fix footnote processing.

0.265.0

  • Change ulist and olist parsers to index list items.
  • Change link parser to accept autolinks.

0.264.0

  • Change signature syntax.
  • Change emphasis, strong, and mark syntax to disallow linebreaks.
  • Remove escaped linebreak processing.

0.263.1

  • Refactoring.

0.263.0

  • Extend fig syntax to set the caption only for inline syntax such as media syntax.

0.262.2

  • Refactoring.

0.262.1

  • Refactoring.

0.262.0

  • Use :has() CSS selector.

0.261.2

  • Refactoring.

0.261.1

  • Refactoring.

0.261.0

  • Change emphasis syntax and strong syntax.

0.260.6

  • Refactoring.

0.260.5

  • Refactoring.

0.260.4

  • Refactoring.

0.260.3

  • Refactoring.

0.260.2

  • Refactoring.

0.260.1

  • Refactoring.

0.260.0

  • Change link parser to accept shortcut text.
  • Fix html parser.

0.259.2

  • Refactoring.

0.259.1

  • Refactoring.

0.259.0

  • Extend cite syntax to accept URL.

0.258.9

  • Refactoring.

0.258.8

  • Refactoring.

0.258.7

  • Refactoring.

0.258.6

  • Refactoring.

0.258.5

  • Refactoring.

0.258.4

  • Refactoring.

0.258.3

  • Refactoring.

0.258.2

  • Refactoring.

0.258.1

  • Refactoring.

0.258.0

  • Introduce memoization.

0.257.3

  • Fix styled table parser.

0.257.2

  • Fix operator precedence.

0.257.1

  • Refactoring.

0.257.0

  • Introduce operator precedence.
  • Decrease the max recursion depth to 20.
  • Fix math parser.

0.256.0

  • Decrease the buget size to 50,000.

0.255.1

  • Refactoring.

0.255.0

  • Change html parser not to use backtracking.

0.254.2

  • Refactoring.

0.254.1

  • Fix footnote processing.

0.254.0

  • Remove sup, sub, and small HTML tags.

0.253.2

  • Refactoring.

0.253.1

  • Refactoring.

0.253.0

  • Change annotation processing.

0.252.0

  • Remove indentblock syntax.

0.251.0

  • Change indentblock parser to require 4 spaces or 1 tab to support text indent.

0.250.0

  • Change comment syntax.

0.249.1

  • Update dependencies.

0.249.0

  • Change some parsers to trim leading blanks except linebreaks.

0.248.1

  • Fix html parser.

0.248.0

  • Change html parser not to limit nesting patterns of HTML tags.

0.247.2

  • Fix math parser.

0.247.1

  • Fix math parser.

0.247.0

  • Refine math parser.

0.246.0

  • Extend table syntax to add grid type.

0.245.0

  • Use webpack.

0.244.2

  • Refactoring.

0.244.1

  • Refactoring.

0.244.0

  • Change mathblock syntax to increase the maximum number of contained lines to 300.
  • Fix fence parser.

0.243.2

  • Refactoring.

0.243.1

  • Refactoring.

0.243.0

  • Reserve sidefence syntax.

0.242.0

  • Add indentblock syntax.

0.241.0

  • Remove sync function.

0.240.2

  • Refactoring.

0.240.1

  • Refactoring.

0.240.0

  • Extend reference syntax not to require leading whitespace after abbr syntax.

0.239.0

  • Extend indexer syntax to make its own index optional.

0.238.0

  • Revert signature syntax not to require leading whitespace.

0.237.2

  • Refactoring.

0.237.1

  • Refactoring.

0.237.0

  • Extend ulist syntax and olist syntax to make their items indexable.

0.236.0

  • Extend figure syntax to allow ulist syntax and olist syntax.

0.235.3

  • Refactoring.

0.235.2

  • Refactoring.

0.235.1

  • Fix table parser.

0.235.0

  • Change signature syntax to require leading whitespace.

0.234.3

  • Refactoring.

0.234.2

  • Refactoring.

0.234.1

  • Fix emstrong parser, emphasis parser, strong parser, and mark parser.

0.234.0

  • Extend anchor syntax.
  • Refine comment parser.

0.233.3

  • Refactoring.

0.233.2

  • Refactoring.

0.233.1

  • Refactoring.

0.233.0

  • Refine comment parser.

0.232.2

  • Refactoring.

0.232.1

  • Refactoring.

0.232.0

  • Refine paragraph syntax to separate mention syntax.
  • Rename mention syntax to reply syntax.

0.231.2

  • Refactoring.

0.231.1

  • Fix comment syntax.
  • Fix ReDoS.

0.231.0

  • Refine hashtag syntax.

0.230.1

  • Refactoring.

0.230.0

  • Change table syntax's cell syntax not to depend on trailing whitespace.

0.229.0

  • Change table syntax's alignment syntax to remove cell type declaration.
  • Change table syntax's dataline syntax.

0.228.0

  • Change table syntax to require horizontal alignment in alignment syntax.

0.227.1

  • Update dependencies.

0.227.0

  • Change a syntax name from hashref to hashnum.

0.226.5

  • Refactoring.

0.226.4

  • Refactoring.

0.226.3

  • Refactoring.

0.226.2

  • Refactoring.

0.226.1

  • Refactoring.

0.226.0

  • Improve math parser.

0.225.2

  • Refactoring.

0.225.1

  • Refactoring.

0.225.0

  • Refine some parsers to disallow trailing whitespace.

0.224.1

  • Refactoring.

0.224.0

  • Change media parser to disallow relative paths.

0.223.0

  • Refine some parsers to allow and trim leading whitespace.

0.222.0

  • Change link parser to trim whitespace.

0.221.0

  • Change ulist, olist, and ilist parsers to disallow fullwidth space indent.
  • Fix ulist, olist, and ilist parsers to accept invalid lines.
  • Fix table parser to accept invalid lines.

0.220.0

  • Change normalization not to escape unreadable characters.

0.219.4

  • Fix comment parser.

0.219.3

  • Improve comment parser.

0.219.2

  • Fix comment syntax to limit the maximum number of contained lines to 100.

0.219.1

  • Fix visualization.

0.219.0

  • Extend annotation syntax to enable reference syntax.

0.218.4

  • Fix footnote processing with invalids.

0.218.3

  • Remove invisible tail in index, annotation, and reference syntax.

0.218.2

  • Improve abbr parser.

0.218.1

  • Fix visualization.
  • Fix invisible verbose tail handling.

0.218.0

  • Allow invisible verbose tails.

0.217.0

  • Extend reference syntax to enable abbr syntax to use an identifier starting with a number.

0.216.1

  • Improve label parser.

0.216.0

  • Refine comment syntax.

0.215.1

  • Fix link parser to open the media in a new tab.

0.215.0

  • Extend info function to return anchors.
  • Change context function to scope function.

0.214.1

  • Fix error handling.

0.214.0

  • Extend quote syntax to improve syntax predictability.
  • Change anchor parser to accept only lower-case alphanumeric characters.

0.213.2

  • Fix media rendering functions.

0.213.1

  • Fix media rendering functions.
  • Fix visualization.

0.213.0

  • Extend media syntax to add width and height options.
  • Fix media rendering functions.

0.212.4

  • Refactoring.

0.212.3

  • Fix footnote processing with labels.

0.212.2

  • Fix fig parser.

0.212.1

  • Fix fig parser to accept invalid arguments.

0.212.0

  • Change header parser to be open.
  • Improve bracket parser not to mark up parenthesises surrounding an index.

0.211.0

  • Change annotation and reference options to annotations and references options.

0.210.0

  • Extend anchor syntax to allow identifiers starting with alphabets.
  • Fix anchor, account, hashtag, and hashref parsers to reflect the document URL.

0.209.2

  • Update dependencies.

0.209.1

  • Fix quote parser.

0.209.0

  • Refine paragraph parser to identify the cite sources.
  • Change cite and anchor syntax to have to start with two >.
  • Fix figure index format.

0.208.0

  • Extend bracket syntax to support fullwidth parenthesises.
  • Enhance bracket parser to mark up parenthesises.

0.207.4

  • Refactoring.

0.207.3

  • Fix header parser to ensure consistency and modularity.

0.207.2

  • Fix header parser to ensure extensibility.

0.207.1

  • Fix account parser.
  • Fix email parser.

0.207.0

  • Change heading and dlist syntax to disable annotation, reference, index, and link syntax.
  • Change dlist syntax to enable media syntax in descriptions.

0.206.0

  • Extend hashtag syntax to be possible to end with parenthesises.
  • Extend hashtag syntax to be possible to use quotations.
  • Extend hashtag syntax to be possible to use underscores.

0.205.0

  • Extend olist syntax to support multiple branch number.

0.204.2

  • Refactoring.

0.204.1

  • Refactoring.

0.204.0

  • Extend figure syntax to be possible to omit its own extension name.

0.203.3

  • Update dependencies.

0.203.2

  • Refactoring.

0.203.1

  • Refactoring.

0.203.0

  • Extend example syntax to be possible to omit its own extension name.
  • Extend table syntax to enable dataline syntax to parse data cell syntax.
  • Extend index syntax to add indexer local syntax.
  • Extend math syntax to add $expr$ syntax.
  • Fix math parser to disallow commands to change font size.

0.202.6

  • Update dependencies.

0.202.5

  • Refactoring.

0.202.4

  • Fix normalization to sanitize unreadable characters.

0.202.3

  • Fix table parser to visualize blank lines.

0.202.2

  • Fix table parser not to parse emptylines as datalines.

0.202.1

  • Refactoring.

0.202.0

  • Increase the max length of segments to 100,000.
  • Improve fenced block parser to disallow contents starting with an empty line.

0.201.3

  • Extend aspect-ratio option of media syntax to add alias syntax.

0.201.2

  • Fix heading parser not to create invisible elements.
  • Fix dlist parser not to create invisible elements.

0.201.1

  • Refactoring.

0.201.0

  • Enhance media parser to parse htmlentity syntax.

0.200.3

  • Improve processing of blank lines to visualize them.

0.200.2

  • Fix removal of blank lines.

0.200.1

  • Fix html parser to disable media syntax in sup, sub, and small HTML tags.
  • Fix html parser to allow bdo and bdi HTML tags to be nested.

0.200.0

  • Add message syntax.
  • Change alias syntax to abbr syntax.

0.199.1

  • Refactoring.

0.199.0

  • Extend media syntax to add aspect-ratio option.
  • Change address syntax to anchor syntax.
  • Change quotation syntax to quote syntax.

0.198.2

  • Refactoring.

0.198.1

  • Refactoring.

0.198.0

  • Add checkbox syntax to ulist and olist syntax.

0.197.1

  • Refactoring.

0.197.0

  • Change position method to index.

0.196.0

  • Add smart table syntax.
  • Refine table parser's alignment representation.
  • Change table syntax to allow media syntax.
  • Change table parser not to align headers.
  • Change example syntax to increase the maximum number of contained lines to 300.

0.195.1

  • Improve localization.

0.195.0

  • Support chunked progressive rendering.
    • Add chunk option.

0.194.2

  • Refactoring.

0.194.1

  • Refactoring.

0.194.0

  • Update compile target to ES2019.
  • Fix account parser.

0.193.0

  • Change annotation syntax to disallow linebreaks.
  • Improve sync function.

0.192.4

  • Fix math parser to disallow environments to disallow linebreaks.

0.192.3

  • Improve sync function.

0.192.2

  • Fix sync function.

0.192.1

  • Improve sync function.

0.192.0

  • Add position function.

0.191.0

  • Refine bind function.
  • Add sync function.
  • Drop media support of Gist for keeping word limits of timelines and threads.

0.190.8

  • Fix context handling.

0.190.7

  • Fix figure numbering in sub-context.

0.190.6

  • Update dependencies.

0.190.5

  • Refactoring.

0.190.4

  • Refactoring.

0.190.3

  • Fix relative path resolution to be based on the document path.

0.190.2

  • Fix subdirectory path resolution to be based on the host path.
  • Fix subdirectory path resolution to remove the file name.

0.190.1

  • Fix url parser not to match trailing = symbol.

0.190.0

  • Change autolink syntax to remove nofollow autolink syntax.

0.189.4

  • Fix emstrong parser.

0.189.3

  • Refactoring.

0.189.2

  • Fix strong and em parsers.

0.189.1

  • Fix subdirectory path resolution.

0.189.0

  • Change alias syntax to use ^ symbol instead of ~.
  • Fix emstrong parser.

0.188.1

  • Fix normalization.

0.188.0

  • Refine header function.
  • Fix normalization.

0.187.2

  • Fix normalization.

0.187.1

  • Refactoring.

0.187.0

  • Refine origin management.
  • Define subresource path.
  • Add cache of code highlight.
  • Extend hashtag syntax to enable it to specify the domain.
  • Change header parser to be case-insensitive.

0.186.0

  • Refine error handling.
  • Improve insertion and deletion parsers to allow to have whitespace anywhere.
  • Fix escape for label parser.

0.185.3

  • Fix escape for hashtag parser.

0.185.2

  • Fix error handling.

0.185.1

  • Fix URL completion.

0.185.0

  • Refine cache control.
  • Enhance aside parser to enable it to define the heading level.

0.184.0

  • Change aside syntax to decrease the maximum number of contained lines to 300.
  • Fix footnote processing to ignore footnotes in separated contexts.

0.183.0

  • Change blockquote parser to render footnotes.
  • Fix footnote processing to ignore footnotes in separated contexts.

0.182.0

  • Change figbase syntax to enable it to be used after level 2 headings.

0.181.0

  • Change label parser to be case-insensitive.

0.180.1

  • Refactoring.

0.180.0

  • Drop media support of SlideShare for security.

0.179.1

  • Refactoring.

0.179.0

  • Refactoring.

0.178.0

  • Add aside syntax.

0.177.0

  • Extend bind function to return the break type.
  • Fix figures to be ignored in inappropriate usage.

0.176.0

  • Remove data syntax.

0.175.1

  • Fix account parser to limit the length.
  • Fix email parser to limit the length.

0.175.0

  • Change bind function's return type.

0.174.0

  • Refine olist syntax.
  • Extend label syntax to allow branch number.

0.173.1

  • Refactoring.

0.173.0

  • Extend alias parser.

0.172.0

  • Refine quote function.
  • Extend alias parser.
  • Change labels numbered by 3 dimensions to be ignored.
  • Remove formatted label syntax.

0.171.2

  • Fix alias syntax.

0.171.1

  • Fix figure function to update indexes of references.

0.171.0

  • Change figures labeled with $-0, $-0.0, or $-0.0.0 to be ignored in inappropriate usage.

0.170.0

  • Refine the control of the base figure number.
    • Add figbase syntax.
    • Change figures labeled with a fixed number not to affect the base figure number.
    • Change the function of $-0 to set the figure number level 1.
  • Improve heading parser.

0.169.0

  • Add quote function.

0.168.0

  • Extend quotation parser to support math syntax.

0.167.1

  • Refactoring.

0.167.0

  • Refine address parser.

0.166.1

  • Refactoring.

0.166.0

  • Update MathJax to v3.

0.165.0

  • Add normalize function.

0.164.0

  • Add header syntax.
  • Add header function.
  • Add body function.

0.163.0

  • Change bracket parser to allow media syntax in double quotation marks.

0.162.0

  • Extend bracket syntax to support double quotation marks.

0.161.1

  • Refactoring.

0.161.0

  • Change domain option to origin.

0.160.0

  • Change heading and dlist syntax to enable annotation, reference, index, link, and autolink syntax.

0.159.0

  • Enhance blockquote and quotation parsers to parse mentions.

0.158.0

  • Enhance address parser to define href attribute.
  • Fix address syntax not to have directories.

0.157.0

  • Add id option.
  • Change hashtag parser to refer to /hashtags/:hashtag.

0.156.1

  • Fix comment parser.

0.156.0

  • Enhance account parser to define href attribute.
  • Enhance channel parser to define href attribute.
  • Enhance hashtag parser to define href attribute.
  • Extend hashtag syntax to be possible to start with a number.

0.155.2

  • Refactoring.

0.155.1

  • Refactoring.

0.155.0

  • Improve autolink syntax detection.
  • Change url parser to allow only ASCII characters.

0.154.0

  • Change account parser to disallow account names starting with a number.

0.153.0

  • Change parser algorithm to backtrack with inner leading whitespace.

0.152.0

  • Update compile target to ES2018.

0.151.4

  • Enable esModuleInterop option.

0.151.3

  • Fix dlist parser to require whitespace after the start symbols.

0.151.2

  • Refactoring.

0.151.1

  • Fix heading and dlist syntax to disable annotation and reference syntax.

0.151.0

  • Change heading syntax to disable link, autolink, and extension syntax.
  • Change dlist syntax to disable link, autolink, and extension syntax.
  • Extend account syntax to be possible to clarify the namespace.
  • Change hashtag syntax to disallow strings starting with a number.
  • Change reference syntax to enable extension syntax.

0.150.0

  • Change the format of figure numbers.

0.149.1

  • Fix media, template, and url parsers to correctly parse contained text.

0.149.0

  • Change template parser not to parse contained text as Markdown.

0.148.8

  • Refactoring.

0.148.7

  • Refactoring.

0.148.6

  • Refactoring.

0.148.5

  • Refactoring.

0.148.4

  • Refactoring.

0.148.3

  • Refactoring.

0.148.2

  • Refactoring.

0.148.1

  • Refactoring.

0.148.0

  • Refactoring.

0.147.4

  • Limit the max size of an id to 100.

0.147.3

  • Refactoring.

0.147.2

  • Refactoring.

0.147.1

  • Fix html parser to disallow annotation and reference parsers in sup or sub HTML tag.
  • Fix annotation and reference parsers to reset the state of html parser.

0.147.0

  • Refine parsers to manage backtracking.
  • Limit the max size of a block to 10,000.

0.146.2

  • Optimization.

0.146.1

  • Enhance footenote processing.

0.146.0

  • Add alias syntax into reference syntax.

0.145.0

  • Rename ParserSettings.footnote to ParserSettings.footnotes.

0.144.2

  • Optimization.

0.144.1

  • Optimization.

0.144.0

  • Hide figure function and footnote function.
  • Change bind function also to yield figure links.
  • Change bind function also to yield footnote links.
  • Change bind function also to yield added and removed list items of footnotes.

0.143.3

  • Fix parsers to be possible to handle invalid URL.

0.143.2

  • Optimization.

0.143.1

  • Refactoring.

0.143.0

  • Add mark syntax.

0.142.2

  • Refactoring.

0.142.1

  • Fix concurrency bugs of bind function.

0.142.0

  • Change bind function to yield undefined to express the abort of the iteration.

0.141.10

  • Refactoring.

0.141.9

  • Refactoring.

0.141.8

  • Fix heading parser to allow empty texts.

0.141.7

  • Refactoring.

0.141.6

  • Refactoring.

0.141.5

  • Fix index parser to allow any text.
  • Fix index parser to ignore rubies.

0.141.4

  • Fix link and media parser to avoid conflict with template syntax.

0.141.3

  • Fix link parser to disable extension syntax.

0.141.2

  • Fix link parser to disable annotation and reference syntax.

0.141.1

  • Fix link parser not to include linkable texts.

0.141.0

  • Change index parser to replace whitespace with _ instead of -.
  • Recover from exceptions in parsing.

0.140.0

  • Change bind function to also yield removed elements.

0.139.3

  • Refactoring.

0.139.2

  • Fix bind function.

0.139.1

  • Refactoring.

0.139.0

  • Change segment separator to empty lines only.

0.138.1

  • Fix end of line processing.

0.138.0

  • Change the handling of too large blocks to replace blocks with error messages.

0.137.1

  • Refactoring.

0.137.0

  • Change paragraph parser not to remove blocks having comments only.

0.136.4

  • Refactoring.

0.136.3

  • Refactoring.

0.136.2

  • Refactoring.

0.136.1

  • Refactoring.

0.136.0

  • Change the nested syntax handling of insertion, deletion, emphasis, and strong syntax.

0.135.1

  • Refactoring.

0.135.0

  • Limit the max size of a block to 100,000.
  • Fix address parser.

0.134.0

  • Change html parser to allow any size of leading and trailing whitespace.
  • Change html parser not to remove leading and trailing whitespace.
  • Fix html parser to parse entire invalid html syntax including closing tags.

0.133.1

  • Optimization.

0.133.0

  • Refine syntax control.
  • Change license.

0.132.2

  • Optimization.

0.132.1

  • Change a syntax name from quote to quotation.
  • Fix paragraph parser to break lines around mention syntax.

0.132.0

  • Add context function.
  • Change bind function's parameters to be required.
  • Fix render function.

0.131.1

  • Fix figure parser to mark results invalid instead of failing to parse.

0.131.0

  • Change heading syntax to allow to be written continuously without separating them by blank lines.

0.130.0

  • Change link syntax to allow texts starting with # or @.
  • Change label syntax to limit the max figure number level to 3.

0.129.0

  • Change a syntax name from authority to reference.
  • Change numbering of figures not to inherit the label formats specified by themselves.
  • Fix numbering of figures to have consistent increment patterns.

0.128.0

  • Extend figure syntax to allow to reset the base number to 0 with the current format.
  • Extend figure syntax to remove the constraints on the content and caption only when it is used for formatting.
  • Enhance figure syntax to finely control the base number.

0.127.0

  • Add info function.
  • Extend hashtag syntax to allow to use tag names starting with numbers.

0.126.2

  • Optimization.

0.126.1

  • Fix footnote function.

0.126.0

  • Change parse and bind functions to number figures by default.

0.125.6

  • Fix figure syntax to remove the maximum number limitation of contained lines.

0.125.5

  • Optimization.

0.125.4

  • Fix context separation.

0.125.3

  • Micro refactoring.

0.125.2

  • Fix context separation.

0.125.1

  • Fix figure function.
  • Fix footnote function.

0.125.0

  • Enhance figure function.

0.124.1

  • Micro refactoring.

0.124.0

  • Improve template parser.

0.123.5

  • Update bind function interface.

0.123.4

  • Fix linebreak control with annotation syntax.

0.123.3

  • Micro refactoring.

0.123.2

  • Micro refactoring.

0.123.1

  • Micro refactoring.

0.123.0

  • Extend address syntax to accept nofollow link syntax.
  • Change address parser not to make a wrapper element.

0.122.0

  • Change paragraph parser to parse mention syntax after texts.
  • Fix autolink parser to convert newline into br HTML tag.

0.121.0

  • Add hashref syntax.
  • Fix autolink parser.

0.120.0

  • Change linebreak control.

0.119.1

  • Fix media parser always to make a link which open a new tab.

0.119.0

  • Extend some APIs to accept ShadowRoot.
  • Change figure function to make by-name links.

0.118.1

  • Fix email parser.

0.118.0

  • Change email parser to be stricter.

0.117.1

  • Fix typings.

0.117.0

  • Remove graph syntax.

0.116.0

  • Enhance codeblock parser to allow to put a filename instead of a language.

0.115.0

  • Revert the previous changes.

0.114.0

  • Change backslash syntax to work only with non-alphanumeric ASCII characters and whitespace.

0.113.0

  • Refine label syntax.

0.112.1

  • Enhance codeblock parser to infer languages from file extensions.

0.112.0

  • Fix bracket syntax to exclude angle bracket.

0.111.3

  • Fix link syntax to disallow nested link syntax.

0.111.2

  • Leave media source URLs.

0.111.1

  • Increase the maximum number of contained lines of some syntax from 99 to 100.

0.111.0

  • Refine olist syntax.

0.110.0

  • Refine olist syntax.

0.109.0

  • Remove emoji syntax.

0.108.5

  • Fix template parser.

0.108.4

  • Fix distribution.

0.108.3

  • Fix bundle processing.

0.108.2

  • Fix hashtag syntax to disallow to be started after any characters except non-alphanumeric ASCII characters.

0.108.1

  • Micro refactoring.

0.108.0

  • Fix figure parser to take blockquote syntax correctly.

0.107.0

  • Enhance annotation parser to trim linebreaks.

0.106.0

  • Allow address syntax to use URL.
  • Extend quote syntax to enable it to be used at the first lines of paragraphs.

0.105.0

  • Replace reference syntax with address syntax and quote syntax.

0.104.0

  • Allow reference syntax to use all ASCII characters.

0.103.4

  • Micro refactoring.

0.103.3

  • Micro refactoring.

0.103.2

  • Micro refactoring.

0.103.1

  • Fix hashtag parser to disallow multibyte whitespace.

0.103.0

  • Fix hashtag syntax to remove #{tag} syntax for consistency with autolinking.
  • Fix channel parser.

0.102.0

  • Add emoji syntax.

0.101.0

  • Add template syntax.

0.100.0

  • Improve ulist, olist, and ilist parsers not to match flag symbols with no trailing whitespace at first.
  • Improve ulist and olist parsers to give parse failure messages.

0.99.6

  • Fix figure function by removing optimization.

0.99.5

  • Fix fig syntax to be possible to take graph syntax.

0.99.4

  • Fix figure syntax to limit the maximum number of contained lines to 300.

0.99.3

  • Fix example syntax to limit the maximum number of contained lines to 99.
  • Fix graph syntax to limit the maximum number of contained lines to 99.

0.99.2

  • Fix figure syntax to disallow to set the caption with formula number.

0.99.1

  • Change insertion and deletion parsers to work flatly.

0.99.0

  • Change insertion and deletion parsers to work recursively.

0.98.0

  • Change codeblock syntax to limit the maximum number of contained lines to 300.
  • Change mathblock syntax to limit the maximum number of contained lines to 99.
  • Change extension syntax to require its own name.

0.97.0

  • Add insertion syntax.
  • Add deletion syntax.
  • Add data syntax.
  • Improve parse failure messages.
  • Remove ins HTML tag.
  • Remove del HTML tag.

0.96.1

  • Remove trailing whitespace.

0.96.0

  • Remove trailing whitespace.

0.95.0

  • Extend link syntax to be possible to omit content part.
  • Extend media syntax to be possible to omit alt text part.
  • Improve media parser to make a link.
  • Refine autolink parser.
  • Improve codeblock parser to parse its text with autolink parser.

0.94.7

  • Micro refactoring.

0.94.6

  • Micro refactoring.

0.94.5

  • Fix uri escaping.

0.94.4

  • Fix autolink parser to exclude media.

0.94.3

  • Fix uri parser to disallow backquote.

0.94.2

  • Fix uri parser behavior with backslash.
  • Fix uri parser to allow single quote and backquote.

0.94.1

  • Fix ruby syntax to allow trailing whitespace.
  • Fix ruby syntax to disallow unused ruby text.

0.94.0

  • Refine hashtag syntax.
  • Change channel syntax from inblock-level to inline-level syntax.
  • Change hashtag syntax from inblock-level to inline-level syntax.

0.93.2

  • Update Gist renderer.

0.93.1

  • Fix breaklines function.
  • Change breaklines function to ignore linebreaks in annotation syntax.

0.93.0

  • Remove traditional comment syntax.
  • Disallow empty comment.

0.92.2

  • Add license notice.

0.92.1

  • Mark invalid HTML as invalid.

0.92.0

  • Don't format indexes.

0.91.0

  • Remove tag level of hashtag syntax.

0.90.3

  • Fix account parser.
  • Fix email parser.

0.90.2

  • Fix hashtag parser.

0.90.1

  • Allow leading @ in square brackets.

0.90.0

  • Refine link, media, and ruby syntax.
  • Disallow link and media syntax having no URL.
  • Change annotation and authority syntax from inblock-level syntax to inline-level syntax.

0.89.0

  • Add graph syntax.

0.88.4

  • Micro refactoring.

0.88.3

  • Micro refactoring.

0.88.2

  • Enable htmlentity syntax with ruby part of ruby syntax.

0.88.1

  • Fix ruby parser.

0.88.0

  • Add ruby syntax.
  • Remove ruby, rt, and rp HTML tags.
  • Disallow linebreaks in authority syntax.

0.87.1

  • Optimization.

0.87.0

  • Add breaklines function.
  • Disallow trailing backslash of end of line with hashtag syntax.

0.86.0

  • Parse blockquote text with autolink parser.

0.85.5

  • Fix bind function to throw an exception when another process starts before finishing the current process.

0.85.4

  • Leave comment data.

0.85.3

  • Avoid a bug of twitter widget.

0.85.2

  • Fix rendering of slideshare.

0.85.1

  • Allow leading whitespace in math syntax.

0.85.0

  • Enable figure parser to set the base index number.
  • Increment the base index number for each h2 elements.
  • Keep figure index depth.
  • Fix figure index increment order.

0.84.0

  • Improve blockquote parser.

0.83.0

  • Refine math syntax.

0.82.0

  • Add email syntax.
  • Extend uri syntax.
  • Extend account syntax.
  • Move account syntax into inline-level syntax.

0.81.3

  • Improve blockquote parser.

0.81.2

  • Improve blockquote parser.

0.81.1

  • Separate auto numbering context per blockquote elements.

0.81.0

  • Refine figure parser.
  • Support formula number rendering.
  • Fix extension parser.
  • Fix figure function.

0.80.3

  • Fix code parser.

0.80.2

  • Fix code parser.
  • Fix codeblock parser.
  • Fix mathblock parser.
  • Fix extension parser.

0.80.1

  • Allow whitespace in code syntax.

0.80.0

  • Disallow to use formula number except math syntax in figure syntax.

0.79.6

  • Fix annotation and authority parser.

0.79.5

  • Fix annotation and authority parser.

0.79.4

  • Mark the missing of required attributes with link, media, and html syntax.

0.79.3

  • Allow tailing whitespace in HTML tag of html syntax.

0.79.2

  • Change annotation mark.

0.79.1

  • Fix cached tweet rendering.
  • Fix cache miss in media rendering with relative path.

0.79.0

  • Disallow media in index syntax.
  • Cache the results of rendering with all media.
  • Fix cache control interface.

0.78.4

  • Refactoring.

0.78.3

  • Improve linebreak handling.

0.78.2

  • Refactoring.

0.78.1

  • Allow tailing whitespace in index syntax.

0.78.0

  • Disallow leading whitespace in annotation, authority, link, media, emphasis, strong, and math syntax.
  • Escape insecure characters.

0.77.0

  • Allow HTML attributes.
  • Remove cite HTML tag.

0.76.0

  • Refine syntax structure design.
    • Move annotation, authority, account, and hashtag syntax into inblock syntax.
  • Add channel syntax.
  • Disllow trailing # with hashtag syntax.
  • Disllow trailing @ with account syntax.

0.75.0

  • Allow trailing @ with account syntax.
  • Remove figure function's header formatter injection.

0.74.3

  • Refactoring.

0.74.2

  • Fix blockquote parser.

0.74.1

  • Fix figure parser.
  • Fix media parser in figure syntax.

0.74.0

  • Allow example syntax in figure syntax.
  • Fix markdown example parser.
  • Fix fig parser to parse blockquote syntax including extension syntax.

0.73.0

  • Add example syntax.
  • Refine extended link and media syntax to allow URI including parenthesises.
  • Reserve attribute schema of media syntax.
  • Reserve attribute schema of math syntax.
  • Allow empty URI in media syntax.
  • Allow leading and trailing whitespace around URI in link and media syntax.
  • Allow invalid arguments of syntax and mark as invalid.
  • Remove escape function.

0.72.0

  • Remove mark HTML tag.
  • Parse html syntax of invalid tags using another parser.
  • Parse invalid index and label syntax using another parser.
  • Set index number of headings for TOC.
  • Remove some trailing symbols in references of figures.

0.71.1

  • Don't use the current abstract URI to visualize empty URI.

0.71.0

  • Exclude blockquote elements from the target of the contextual features.
  • Don't count hyphens of HTML comment out syntax.

0.70.0

  • Extend figure function.

0.69.0

  • Add authority syntax.
  • Refine footnote function.

0.68.0

  • Allow to put $ symbol after math syntax.
  • Decode URI only on displaying.
  • Remove invalid surrogate pairs.

0.67.0

  • Allow empty lines in math syntax.
  • Allow leading and trailing whitespace in math syntax.

0.66.0

  • Allow media syntax in figure syntax.

0.65.1

  • Fix figure function.
    • Fix numbering of figure elements.
    • Don't require group index in reference.

0.65.0

  • Fix link, media, and URL parser.
    • Don't escape any character by \.

0.64.0

  • Remove control characters.
  • Fix link text constraints.

0.63.1

  • Disallow link texts starting with @.

0.63.0

  • Parse as extension before parsing as link.
  • Disallow link texts starting with #.

0.62.0

  • Allow invalid HTML tags with replacing.
  • Don't translate the text of code and math.

0.61.0

  • Allow tel protocol in link syntax.
  • Refine rendering options.

0.60.0

  • Disallow ulist syntax without -.

0.59.0

  • Disallow figure names starting with numbers.
  • Revert removing linebreaks after wbr HTML tag.

0.58.0

  • Localize linebreak processing.
  • Insert wbr element with linebreak.
  • Remove linebreaks after wbr HTML tag.

0.57.0

  • Add fig syntax.

0.56.0

  • Change reference parser to accept only lower-case alphanumeric characters.
  • Extend reference parser to add nest level.
  • Extend label parser to support equation numbering.

0.55.0

  • Extend hashtag parser to add tag level.
  • Extend comment syntax to add HTML comment syntax.

0.54.0

  • Allow blockquote syntax in figure syntax.
  • Improve figure parser with pretext syntax.

0.53.0

  • Allow list nesting with no content.
  • Disallow media in heading, ulist, olist, dlist, and table syntax.

0.52.2

  • Allow empty table row.

0.52.1

  • Fix table parser.

0.52.0

  • Refine table parser.

0.51.0

  • Allow image link in link.

0.50.0

  • Unify the same footnotes.

0.49.0

  • Allow empty blockquote.
  • Fix nested blockquote.

0.48.0

  • Change markdown rendering flag of blockquote syntax.

0.47.0

  • Require tables to put body contents.
  • Don't use align attribute in tables.

0.46.1

  • Allow trailing newline in figure syntax.
  • Allow empty nested blockquote.

0.46.0

  • Always open a media link in new tab.
  • Allow whitespace in indexer.
  • Remove local text parsing rules.
  • Refactoring with some small breaking changes.

0.45.0

  • Extend bracket parser for ".

0.44.2

  • Refactoring.

0.44.1

  • Fix paragraph parser for hashtag parser.

0.44.0

  • Add comment syntax.
  • Disallow nested annotations and media in annotations.

0.43.1

  • Improve index parser.
    • Standardize indexes to lower case.

0.43.0

  • Add figure syntax.
  • Add label syntax.
  • Add figure function.
  • Add footnote function.
  • Refine horizontalrule syntax.
  • Fix hashtag parser.
  • Remove q HTML tag.

0.42.1

  • Fix the copyright notice.

0.42.0

  • Add toc function.
  • Extend bind function signature.

0.41.1

  • Improve index parser.
    • Allow trailing whitespace.

0.41.0

  • Add reference syntax.
  • Refine hashtag syntax.
  • Markup newline characters.

0.40.0

  • Add hashtag syntax.
  • Improve URL parser.
    • Allow escaped whitespace.
  • Improve account parser.
    • Don't escape URI after @ symbol.
    • Use anchor element.

0.39.1

  • Fix URL parser.
    • Support IPv6 addresses.
    • Fix rules of trailing symbols detection.
  • Fix escape function.

0.39.0

  • Improve bind function to be reentrant.
  • Remove extended syntax of link and media.

0.38.3

  • Fix pretext parser.
  • Fix link and media parsers.

0.38.2

  • Fix URL parser.

0.38.1

  • Fix index parser.

0.38.0

  • Support video and audio media.
  • Refine rendering options.
  • Fix math parser.

0.37.1

  • Fix index parser.

0.37.0

  • Compile to es2016.

0.36.1

  • Optimization.

0.36.0

  • Support progressive rendering.
  • Refine bind function.

0.35.3

  • Optimization.

0.35.2

  • Refactoring.

0.35.1

  • Refactoring.

0.35.0

  • Extend pretext syntax to allow any language and filename.

0.34.10

  • Fix link parser.

0.34.9

  • Fix link parser.

0.34.8

  • Refactoring.

0.34.7

  • Refactoring.

0.34.6

  • Fix emphasis parser.
  • Fix code parser.

0.34.5

  • Update Tweet renderer.

0.34.4

  • Improve error messages.

0.34.3

  • Fix pretext parser.

0.34.2

  • Revert local text parsing rules.
  • Fix newline parsing.

0.34.1

  • Fix media rendering.

0.34.0

  • Add escape function.
  • Disallow _ in account names.
  • Remove local text parsing rules.
  • Use DOMPurify.

0.33.0

  • Add ins, del, sup, and sub HTML tags.
  • Remove insertion, deletion, superscript, and subscript syntax.
  • Remove code HTML tag.
  • Improve parsing with brackets.
  • Fix parsing with strong and emphasis syntax.

0.32.0

  • Change schema of caches.

0.31.0

  • Improve image rendering function interface.

0.30.1

  • Fix RenderingOptions interface.

0.30.0

  • Refine rendering options.

0.29.0

  • Reserve symbol syntax.
  • Extend extension syntax.
  • Expose caches for custom renderer implementation.

0.28.0

  • Add rendering options.
  • Fix math syntax to disallow empty lines.

0.27.0

  • Fix index syntax.

0.26.2

  • Avoid a bug of PrismJS.

0.26.1

  • Remove verbose code.

0.26.0

  • Add syntax highlight.
  • Fix cached math rendering.

0.25.0

  • Add index syntax.
  • Extend link syntax.
  • Extend autolink syntax.
  • Improve media rendering.
  • Fix cached math rendering.
  • Remove zalgo parser.

0.24.0

  • Add rendering cache feature.

0.23.0

  • Extend link syntax.
  • Extend media syntax.
  • Fix media URI parsing.

0.22.0

  • Add render function.
  • Extend autolink syntax.

0.21.2

  • Optimization.

0.21.1

  • Refactoring.

0.21.0

  • Extend blockquote syntax.
  • Relax olist syntax.
  • Fix constraints of list children.

0.20.0

  • Change bind function design.

0.19.0

  • Add math syntax.

0.18.0

  • Add zalgo parser.

0.17.1

  • Fix URL processing.

0.17.0

  • Accept bodiless incomplete table.
  • Fix blockquote syntax.
  • Extend ulist syntax.
  • Extend bind function signature.

0.16.0

  • Add autolink syntax.
  • Improve link parser.
  • Fix text parser.
  • Squash multiple linebreaks.

0.15.0

  • Enhance link parser.
  • Improve annotation parser.
  • Improve table parser.

0.14.0

  • Refine link parser.
  • Allow only lower case HTML tags.
  • Disallow empty contents.

0.13.0

  • Refine annotation parser.

0.12.1

  • Fix package settings.

0.12.0

  • Enhance bind function.

0.11.0

  • Remove dfn, abbr, samp, kbd, data, time, and var HTML tags.

0.10.0

  • Add insertion syntax.
  • Change strike to deletion syntax.
  • Remove ins, del, sup, and sub HTML tags.
  • Improve parser algorithm.

0.9.0

  • Extend pretext syntax.
  • Extend extension syntax.
  • Enhance table parser.
  • Fix segment parser.
  • Fix olist parser.

0.8.0

  • Change license to Apache-2.0 AND MPL-2.0.
  • Fix bind function.

0.7.0

  • Add superscript syntax.
  • Add subscript syntax.
  • Remove u HTML tag.
  • Improve html parser.
  • Fix code parser.

0.6.0

  • Refine dlist syntax.
  • Refine olist syntax.
  • Enhance table parser.

0.5.0

  • Add dlist syntax.
  • Improve table parser.

0.4.2

  • Fix paragraph parser.

0.4.1

  • Fix extension parser.

0.4.0

  • Enhance pretext syntax.
  • Add extension syntax.
  • Allow wbr HTML tag.
  • Fix segmentations.

0.3.1

  • Fix horizontalrule parser.
  • Fix ulist and olist parser.

0.3.0

  • Add nofollow link syntax.
  • Fix pretext language specification.

0.2.0

  • Change parse function return type.

0.1.0

  • Release.