wtf-plugin-markdown

1.0.1 • Public • Published
wtf-plugin-markdown
a plugin for wtf_wikipedia

npm install wtf-plugin-markdown

Some additional conjugation of adjectives

const wtf = require('wtf_wikipedia')
wtf.extend(require('wtf-plugin-markdown'))

let doc = wtf('hello [[world]]')
doc.markdown()
// 'hello <a href="./world">world</a>'
<script src="https://unpkg.com/wtf_wikipedia"></script>
<script src="https://unpkg.com/wtf-plugin-markdown"></script>
<script defer>
  wtf.plugin(window.wtfMarkdown)
  wtf.fetch('Hamburg').then((doc) => {
    console.log(doc.sentences()[0].markdown())
    // **Hamburg** is the [second-largest city](./List_of_cities_in_Germany_by_population) in [Germany](./Germany) ...
  })
</script>

work-in-progress

MIT

/wtf-plugin-markdown/

    Package Sidebar

    Install

    npm i wtf-plugin-markdown

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    44.9 kB

    Total Files

    19

    Last publish

    Collaborators

    • spencermountain