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

Links in Jira Description do not render properly #67

Open
jumbo172 opened this issue Jul 12, 2024 · 0 comments
Open

Links in Jira Description do not render properly #67

jumbo172 opened this issue Jul 12, 2024 · 0 comments

Comments

@jumbo172
Copy link

jumbo172 commented Jul 12, 2024

I am using the jira needservice to extract jira tickets. The content of some of the tickets contain links to other jira tickets in the Description.

Here is a raw unformatted link, after getting it from jira:

print(datum["fields"]["description"])

[https://idexasa.atlassian.net/browse/REQGP-999|https://idexasa.atlassian.net/browse/REQGP-999|smart-link]

Here is the link after converting from Jira format to markdown and from markdown to rst:

description_text = md_convert(jira_convert(datum["fields"]["description"]))
print(description_text)

https://idexasa.atlassian.net/browse/REQGP-999<https://idexasa.atlassian.net/browse/REQGP-999|smart-link>_

However, the angle brackets are not escaped, so the rendered need look like this, and no longer functions as a clickable link:

https://idexasa.atlassian.net/browse/REQGP-999 &lt;https://idexasa.atlassian.net/browse/REQGP-999|smart-link&gt;_

Is there a way to get the external links to render properly within a need?

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