Search code examples
markdownspip

Convert SPIP text to markdown (or HTML)


I've got to update an old website based on SPIP (A french CMS with specific, Markdown-like syntax).

I'd like to convert its database content to markdown, but I didn't find any useful resource to convert SPIP syntax to HTML (And then to markdown via league/html-to-markdown, for instance), but I'm not able to find the correct method (from SPIP's code) to use to do so.

Any help would be great.


Solution

  • I finally found a script which matches my needs : https://github.com/nhoizey/spip2markdown

    It is intended to be used inside SPIP, but the main functions are easily adaptable.