Skip to content

Latest commit

 

History

History

markdown

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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