nyyManni / ejira

Emacs JIRA integration
GNU General Public License v3.0
255 stars 36 forks source link

verbatim text (curly braces) #29

Open MadEarl opened 4 years ago

MadEarl commented 4 years ago

Does anyone else have the problem that Jira verbatim text is not converted?

When I have ~Example Text~ in org, it gets converted correctly to {{Example Text}} in Jira, but when converting from Jira to org, the replacement does not occur, the curly braces end up in org and are converted to Jira markup on the next push, so that the text in Jira subsequently is garbled.

I have checked the regex pattern, it seems ok. I am at a loss as to why the transformation does not happen.

johnhamelink commented 4 years ago

I've just started using ejira, and I've noticed it does this also. A JIRA project I've imported makes heavy use of the {color:#00b8d9}Example{color} syntax. I don't know if it's possible to support coloured text, but it'd be nice to at least hide the syntax so it's not visible in emacs.

nyyManni commented 4 years ago

Colored text was something I also ran into, but did not end up implementing as there was no support for it in the org-mode. It would be really nice if I could at least edit an issue description, which already has coloring - without destroying it.

Creating a body of text with coloring in org-mode would probably require extending org syntax itself.

johnhamelink commented 4 years ago

It's not the end of the world - just being able to escape JIRA's UI is a huge win on its own :) But a nice to have!

MadEarl commented 4 years ago

I fixed the {{}} issue; if it by itself is causing trouble for others, I can make the fix available. IIRC, it had to do with replace-regex-in-string misbehaving in certain circumstances, so I replaced it with a similar function from the s package. My fork has the change.