Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

securemark

Package Overview
Dependencies
Maintainers
0
Versions
628
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

securemark

Secure markdown renderer working on browsers for user input data.

  • 0.282.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
82
decreased by-69.85%
Maintainers
0
Weekly downloads
 
Created
Source

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

POperators
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.

Keywords

FAQs

Package last updated on 01 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc