Created
July 4, 2020 20:05
-
-
Save un-def/c3a4f72271e01d5303006ee0055c808f to your computer and use it in GitHub Desktop.
Render wikitext to HTML using Wikipedia API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl https://en.wikipedia.org/w/api.php -F format=json -F action=parse -F contentmodel=wikitext -F text='<-' 2> /dev/null | jq -r '.parse.text["*"]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment