Page MenuHomePhabricator

Implement an experimental markdown --> wikitext endpoint in Parsoid
Closed, DeclinedPublic

Description

Parsoid can serialize HTML to wikitext. So, if we are able to use a 3rd party library to parse markdown to clean HTML, we could then use Parsoid to then serialize that to valid wikitext.

(The other direction: wikitext -> HTML -> markdown might be harder!)

One could then imagine editing gadgets that lets editors add content in markdown and have it saved as valid wikitext.

This would be an interesting project in its own right but it would also help us identify gaps in our serialization code in terms of handling HTML that is not Parsoid-generated.

Event Timeline

ssastry raised the priority of this task from to Medium.
ssastry updated the task description. (Show Details)
ssastry added a subscriber: ssastry.

Is this a confirmed #wikimania-hackathon-2015 task? If so, please move it to the appropriate column in the workboard and assign it to the main contact person. Thank you!

@Qgil -- what's involved with "confirming" it as a hackathon task? Sorry, I'm a little out of the loop.

More work to be done:

  1. Rather than shove this into the Parsoid codebase, a better solution would be to use a different repository that massages the markdown HTML appropriately and queries a public parsoid API.
  1. Besides the strong/em massaging already being done, additional things to do would be to replace <code> snippets with appropriate <syntaxhighlight> ext. tags. which should also eliminate the nowiking being encountered.

What is the status of this task, now that Wikimania 2015 is over? Did this hacking project take place and was successfully finished? If yes: Please provide an update and potentially summarize findings / provide a link to anything relevant (and if the task is not completely finished yet, please move the project to the "Work continues after Mexico City" column on the #Wikimania-Hackathon-2015 workboard). If no: Please edit this task by removing the #Wikimania-Hackathon-2015 project from this task. Thanks for your help and keeping this task updated!

A message to all open tasks related to the #Wikimania-Hackathon-2015. What do you need to complete this task? Do you need support from the Wikimedia Foundation to push it forward? Help promoting this project? Finding an intern to work on it? Organizing a developer sprint? Pitching it to WMF teams? Applying for a grant? If you need support, share your request at T107423: Evaluate which projects showcased at the Wikimania Hackathon 2015 should be supported further or contact me personally. Thank you!

ssastry lowered the priority of this task from Medium to Low.Apr 6 2018, 8:01 PM

A nice hackathon idea and experiment, but not worth cluttering the codebase with this. This can at best be an external tool to adapt HTML to something that Parsoid can deal with.