Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add logic for when Jira Editor wraps text effects (~, _, +, etc) in curly braces { } #32

Open
arctus-io opened this issue Sep 23, 2024 · 0 comments

Comments

@arctus-io
Copy link
Contributor

arctus-io commented Sep 23, 2024

I haven't been able to find the Atlassian documentation behind why this happens but in real world usage the Jira Editor sometimes wraps text effects (~, _, +, etc) in curly braces { }.

For instance instead of having this:

This is *strong*

This is +inserted+

This is _emphasis_

is will sometimes have this:

This is {*}strong{*}

This is {+}inserted{+}

This is {_}emphasis{_}

which renders in Jira exactly the same as the first.

jira2markdown isn't aware causing erroneous markdown output.

I can provide additional info and/or submit a PR later on. I feel like following something similar to the implementation of the color conversion in text_effects.Color() would be a good way forward.


Related but possibly out of scope for this issue, Jira Editor allows text effects to inline code (monospaced, {{ }}) using curly braces and sometimes adds empty curly braces to in-line code that don't change the rendering.

I am {{{}code{}}}

In Jira this would visually render as:

I am code

I am {{*bold code*}}

I am also {{{*}bold code{*}}}

In Jira this would visually render as:

I am bold code
I am also bold code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant