Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
markdown-model
Advanced tools
Markdown object model, parser, and renderer
Weekly downloads
Readme
markdown-model API Documentation
markdown-model is a JavaScript Markdown parsing and rendering library.
To parse a Markdown document and produce a Markdown model, use the parseMarkdown function:
import {parseMarkdown} from 'markdown-model/parser.js';
const markdownModel = parseMarkdown(markdownText);
To render the Markdown model in a web browser, use the markdownElements function with the renderElements function from the element-model package:
import {markdownElements} from 'markdown-model/elements.js';
import {renderElements} from 'element-model/elementModel.js';
renderElements(document.body, markdownElements(markdownModel));
You can compute the title of a Markdown document from the Markdown model using the getMarkdownTitle function:
import {getMarkdownTitle} from 'markdown-model/markdownModel.js';
const markdownTitle = getMarkdownTitle(markdownModel);
The validateMarkdownModel function is used to validate Markdown models from untrusted sources or for testing the validity of any code that produces a Markdown model:
import {validateMarkdownModel} from 'markdown-model/markdownModel.js';
validateMarkdownModel(markdownModel);
markdown-model is developed using javascript-build and it was started using javascript-template:
template-specialize javascript-template/template/ markdown-model/ -k package markdown-model -k name 'Craig A. Hobbs' -k email 'craigahobbs@gmail.com' -k github 'craigahobbs' -k noapp 1
FAQs
Markdown object model, parser, and renderer
The npm package markdown-model receives a total of 10 weekly downloads. As such, markdown-model popularity was classified as not popular.
We found that markdown-model demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.