extra-markdown-text.web 0.0.5
Install from the command line:
Learn more about npm packages
$ npm install @nodef/extra-markdown-text.web@0.0.5
Install via package.json:
"@nodef/extra-markdown-text.web": "0.0.5"
About this version
Utility methods for Markdown text.
π¦ Node.js,
π Web,
π Files,
π° Docs.
This package is available in both Node.js and Web formats. The web format
is exposed as extra_markdown_text
standalone variable and can be loaded from
jsDelivr CDN.
Stability: Experimental.
const path = require('extra-markdown-text');
function main() {
path.filename('/home/user/file+name.txt');
// β file+name
path.symbolname('/home/user/file+name.txt');
// β file_name
path.symbolname('/home/user/file+name.txt');
// β file-name
}
main();
Property | Description |
---|---|
forEachCodeBlock | Match code blocks in markdown text. |
codeBlocks | Get code blocks in markdown text. |
replaceCodeBlocks | Replace code blocks in markdown text. |
tagCodeBlocks | Tag code blocks in markdown text and remove them. |
untagCodeBlocks | Untag code blocks in markdown text by adding them back. |
forEachLink | Match links in markdown text. |
links | Get links in markdown text. |
replaceLinks | Replace links in markdown text. |
forEachLinkReference | Match link references in markdown text. |
linkReferences | Get link references in markdown text. |
replaceLinkReferences | Replace link references in markdown text. |
forEachTable | Match tables in markdown text. |
tables | Get tables in markdown text. |
replaceTables | Replace tables in markdown text. |