Open main menu

Changes

660 bytes added ,  09:13, 30 April 2020
Some introductory test info on Parsoid
In QualityBox, we run Parsoid on port 8000 rather than the default 8142.

You can check the version with <syntaxhighlight lang="bash">
curl localhost:8000/version
</syntaxhighlight>


You can check parsoid output with <syntaxhighlight lang="bash">
curl -L http://localhost:8000/wiki/v3/page/html/Main_Page/
</syntaxhighlight>where 'wiki' is the name of a domain you find in the config<syntaxhighlight lang="bash">
grep domain /etc/parsoid/config.yaml
</syntaxhighlight>You can check the output of parsoid converting wikitext to HTML: <syntaxhighlight lang="bash">
/etc/parsoid/bin# echo "'''This is bold'''" | node parse and node parserTests
</syntaxhighlight>