gtech-markdown-parser

1.0.1 • Public • Published

Extrai links de arquivo Markdown

Esta biblioteca receba uma string (em formato Markdown) e devolve um vetor de objetos com todos os links encontrados.

Essa versão abrange os seguintes tipos de links markdown:

[I'm an inline-style link](https://www.google.com)

[I'm an inline-style link with title](https://www.google.com "Google's Homepage")

[I'm a relative reference to a repository file](../blob/master/LICENSE)

Como instalar:

$ npm install gtech-markdown-parser

Como utilizar:

const MarkdownParser = require('gtech-markdown-parser');
const markdownString = `[I'm an inline-style link](https://www.google.com)`;
const links = MarkdownParser.getLinksFromMd(markdownString);

//return [ { href: 'https://www.google.com', 
//           text: 'I\'m an inline-style link' } ]

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i gtech-markdown-parser

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    6.53 kB

    Total Files

    5

    Last publish

    Collaborators

    • anacamargo