Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,076
Community Members
 
Community Events
165
Community Groups

Convert HTML to Jira WikiMarkup

While Atlassian made some workaround ways to convert Jira WikiMarkup to HTML.

There is no way to do the other way around and convert HTML to Jira WikiMarkup.

I saw all over the community, a lot of people looking for a way of doing it.

So i decided to create packages for any environment people asked me:

Nuget package for .Net : https://www.nuget.org/packages/Html2JiraMarkup/

npm package for JS: https://www.npmjs.com/package/html-2-jira-markup

 

Hope it will be useful for many other people.

You are welcome to say thanks or ask for package to another language / framework and i will try to do my best.

 

Thanks :)

11 comments

@Nir Haimov  can you share any libraries for Java. To Convert Html to Jira Markup?

Nir Haimov Community Leader Nov 30, 2021

Hi @Anandraj Rajaram 

I will try to find some free time and create library for Java too.
i will update with link once i'm done

Nir Haimov Community Leader Jan 07, 2022

Hi @Anandraj Rajaram 

Sorry for keeping you waiting for nothing.
Eventually, i will not create a Java library, i tried to, but found myself too long around it, so decided to let it go.
You can however look at the implementation i did in one of the exiting packages, and try to do the same in Java

Thanks, @Nir Haimov . I got this library from Atlassian

<dependency>
<groupId>com.atlassian.renderer</groupId>
<artifactId>atlassian-renderer</artifactId>
<version>8.0.5</version>
</dependency>

 and temporarily solved with the below method

convertXHtmlToWikiMarkup

but just got few minor issues like the above method is not converting <BIG> html tags

Hi Nir - This is great. I'm looking for exactly this - but in PowerShell (!)

Is that easy to provide ? If so would you be kind enough ??

Thanks ;) Andy

Nir Haimov Community Leader Jan 08, 2022

Hi @Andrew Hines 

Sorry, but i'm not familiar with PowerShell

Hi @Anandraj Rajaram ,

can you please guide me how you resolved this issue?

where you added the library?

<dependency>
<groupId>com.atlassian.renderer</groupId>
<artifactId>atlassian-renderer</artifactId>
<version>8.0.5</version>
</dependency>

and where and how you used below method? 

convertXHtmlToWikiMarkup

Hello, @Nir Haimov  In one of your answers in this thread you said  "You can however look at the implementation i did in one of the exiting packages, and try to do the same in Java".

Is this open source? If yes, can you provide repository links? I am interested in C# sources.

Thank you

Nir Haimov Community Leader Mar 10, 2022

Hi @Fabio Silva 

This is not exactly an open-source.
What I meant is, if you use one of my packages you can view the package content with your IDE (like visual studio)

Anyway, I made a package for C# https://www.nuget.org/packages/Html2JiraMarkup/

Hi @Nir Haimov ,
If we have table tags in html string its not getting recognised in jira, its just printing table as is. Any known bug ?

Comment

Log in or Sign up to comment
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you