Topic on Talk:Parsoid

Parsoid is not converting piped wiki links to html correctly

3
Summary by Ammcgillivray

The problem was user error.

Ammcgillivray (talkcontribs)

Versions

  • Mediawiki: 1.34.4
  • Node.js: 8.11.11
  • Parsoid: 0.11.0
  • OS: CentOS 7.9.2009

Issue

I am currently using Parsoid to convert wikitext to html. However, when I have an inter-wiki link that includes a pipe such as [[Main Page|test 123]], Parsoid converts it to href="http://127.0.0.1:8080/wiki1/Main_Pagetest_123" title="Main Pagetest 123" (omitting some of the other html output for the link)

If anyone has any understand why this is happening or how to work around it, I'd really appreciate it!

Arlolra (talkcontribs)

Odd. Is it actually a vertical bar or some other unicode character?

Does it happen on the command line as well? echo "test 123" | node bin/parse.js

Ammcgillivray (talkcontribs)

Oh my goodness, this is 100% user error. It does work from the command line. The reason it doesn't work from inside my program is because I was stripping pipe characters from the text being converted 🤦‍♀️

False alarm. Thank you for your help and quick response time that allowed me to spot my own idiocy!