J2M icon indicating copy to clipboard operation
J2M copied to clipboard

Fails to convert JIRA list syntax to markdown

Open jpluimers opened this issue 10 years ago • 3 comments

While converting a bunch of JIRA content to MarkDown, I run into the lack of support for JIRA list syntax, for instance this is currently converted as is from JIRA to markdown:

* a
* bulleted
*# with
*# nested
*# numbered
* list

But should become something like:

- a
- bulleted
    0. with
    0. nested
    0. numbered
- list

I'm not a good JavaScript or RegEx programmer, so I wasn't able to modify your (very concise!) core code in script.js.

BTW: for (at least my) reference a few links, just in case I bump into other issues as well.

jpluimers avatar May 28 '14 06:05 jpluimers

Thx. As you can see it only supports very basic syntax at the moment and I really don't have time to improve on it. So if you have a PR I'm open for it, but as of from my side I'll have to leave this issue open.

FokkeZB avatar May 28 '14 07:05 FokkeZB

I also noticed that nested lists don't format properly. If I wind up using this awesome tool more often, I'll consider a PR. Thanks for doing this project!

ccmcbeck avatar Feb 11 '16 17:02 ccmcbeck

Maybe #12 would be a better approach

FokkeZB avatar Jun 16 '16 07:06 FokkeZB