-
Notifications
You must be signed in to change notification settings - Fork 134
Use Pandoc for Textile <> MD and add JIRA's extras #12
Comments
Note that Pandoc is a Haskell library that also provides a command-line tool, while this project, J2M, is a JavaScript library. That would make it difficult to call Pandoc from J2M unless this tool were changed to be a command-line tool or to have a separate server component that ran Pandoc. It is possible to embed Pandoc in the browser: http://markup.rocks/ (source code) does it by compiling the Haskell to JavaScript using GHCJS. However, this involves a 2.2 MB initial download of the generated JavaScript. So these are the options for improving the parsing:
To give more detail on the non-Pandoc option, there are existing libraries that can parse and generate Markdown (CommonMark), and that can at least parse Textile (textile.js). They each have their own AST format which you could use as J2M’s internal standard representation. Or you could convert both Markdown and JIRA to HTML before converting them to the other format. Whether you use Pandoc or a native JavaScript library to parse Textile, you would still first have to write code to convert between Textile and JIRA markup, in both directions. |
There might be some Node.js wrappers: Anyway, if you want to give it a go, be my guest! |
http://pandoc.org/
http://pandoc.org/try/
https://answers.atlassian.com/questions/31681034/how-different-is-jira-markup-from-textile
The text was updated successfully, but these errors were encountered: