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' } ]
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    5
  • 1.0.0
    1

Package Sidebar

Install

npm i gtech-markdown-parser

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

6.53 kB

Total Files

5

Last publish

Collaborators

  • anacamargo