1.0.0 • Published 2 years ago

wtf-plugin-latex v1.0.0

Weekly downloads
17
License
MIT
Repository
github
Last release
2 years ago

Output all, or parts of a wikipedia article in LATEX format.

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

let doc = wtf('hello [[world]]')
doc.latex()
// 'hello \href{./world}{world}'
<script src="https://unpkg.com/wtf_wikipedia"></script>
<script src="https://unpkg.com/wtf-plugin-latex"></script>
<script defer>
  wtf.plugin(window.wtfLatex)
  wtf.fetch('Hamburg').then((doc) => {
    console.log(doc.sentences()[0].latex())
    // \textbf{Hamburg} officially the \textbf{Free and Hanseatic City of Hamburg}, is the \href{./List_of_cities_in_Germany_by_population}{second-largest city} ...
  })
</script>

work-in-progress

MIT

1.0.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago