Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

{noformat} doesn't #11

Closed
rspilker opened this issue Jun 6, 2016 · 4 comments
Closed

{noformat} doesn't #11

rspilker opened this issue Jun 6, 2016 · 4 comments

Comments

@rspilker
Copy link

rspilker commented Jun 6, 2016

From the example page:

{noformat}
  preformatted piece of text
  so *no* further _formatting_ is done here
{noformat}

converts to

```
  preformatted piece of text
  so **no** further *formatting* is done here
```

So *no* is changed to **no** and _formatting_ to *formatting*.

I expected everything between the {noformat} to remain the same.

@FokkeZB
Copy link
Owner

FokkeZB commented Jun 15, 2016

Mmm, yes.. that makes sense given the very simple replacements it does.

Unfortunately I cannot spent time on this atm, but I'm open for PRs!

@rspilker
Copy link
Author

I understand.

Regular expressions are not usable at all. I've tried to parse the JIRA format myself, but there is no specification, just some very simple examples. There are some implicit rules regarding nesting, no difference between opening and ending "tags". No grammar available at all and a lot of corner cases, as far as I could see.

I think the best approach is to have JIRA render the HTML (also possible via the API), and then convert the HTML to Markdown. In general, that is very hard, but in this case good to do since JIRA only uses a small subset of HTML.

@FokkeZB
Copy link
Owner

FokkeZB commented Jun 16, 2016

JIRA's format is actually Textile plus some extras, so it might be a good idea for J2M to use Pandoc and plus some additional conversions.

http://pandoc.org/
http://pandoc.org/try/

@FokkeZB
Copy link
Owner

FokkeZB commented Jun 16, 2016

Closing for #12

@FokkeZB FokkeZB closed this as completed Jun 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants