#42 Pie-in-the-sky RFE: Export wiki formatting to HTML, import HTML to Markdown/HTML
Opened 7 years ago by jflory7. Modified 7 years ago

Problem

Tickets in Trac are written in wiki formatting and it is converted to ugly / non-converted markup in Pagure. Converting markup languages would be helpful for data preservation.

Analysis

It would be awesome if there would be a way to handle this. Pandoc is an example of software that can easily convert between markup languages like wiki formatting, markdown, and HTML.

I'm not sure if it would be best to use an API (if there is one) from Pandoc to achieve this goal or if it would be better to craft something in-house. But it seems technically feasible / reasonable to anticipate wiki formatting from FedoraHosted instances being migrated, convert that data from wiki formatting to HTML, and then import that converted format into Pagure.

Implementation suggestion

  1. Run pgimport, clone destination repo.
  2. Import tickets from FedoraHosted instance, store locally.
  3. While importing, convert ticket comment data from wiki formatting to HTML.
  4. Push tickets to destination repo.
  5. While pushing, implement some kind of post-HTML conversion or just make sure that the HTML is safely imported into Pagure.

Login to comment on this ticket.

Metadata