# Format jira markup to HTML and vice versa, C#, Atlassian.SDK

**URL:** <https://community.developer.atlassian.com/t/format-jira-markup-to-html-and-vice-versa-c-atlassian-sdk/47458>\
**Category:** Jira Cloud\
**Tags:** html, wiki-markup, csharp, jira-cloud, dotnet, table\
**Created:** [April 27, 2021, 10:54am UTC](https://community.developer.atlassian.com/t/format-jira-markup-to-html-and-vice-versa-c-atlassian-sdk/47458 "2021-04-27T10:54:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristofferJonJensen](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@ChristofferJonJensen](https://community.developer.atlassian.com/u/ChristofferJonJensen)\
**Post date:** [April 27, 2021, 10:54am UTC](https://community.developer.atlassian.com/t/format-jira-markup-to-html-and-vice-versa-c-atlassian-sdk/47458/1 "2021-04-27T10:54:19Z")

</div>

Hi  
I am using C#, Visual studio 2019 and the nuget package “Atlassian.SDK” v 12.4.0.  
Everything is working fine, creating Issues, editing Issues, creating subtasks etc. The only thing i cannot workout, is how to format HTML to Jira markup. Its primarily the HTML tables creating the issues.

The “Issue” description field and Comments field, both use Jira markup.  
Do I have top write the converter myself, or is there some solution I am missing?

Any help would be very much appreciated.

---

<div class="post-metadata">

**Author:** ![ibuchanan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ibuchanan/32/35815_2.png) [@ibuchanan](https://community.developer.atlassian.com/u/ibuchanan)\
**Post date:** [April 27, 2021, 11:46am UTC](https://community.developer.atlassian.com/t/format-jira-markup-to-html-and-vice-versa-c-atlassian-sdk/47458/2 "2021-04-27T11:46:42Z")

</div>

@ChristofferJonJensen,

I did a bit of Googling and you might find some useful utilities inside [DotNetWikiBot](http://dotnetwikibot.sourceforge.net/). I can’t vouch for it from my own use though.

What jumped out about this post is the use of wiki markup. Under the hood, the [Atlassian.SDK](https://www.nuget.org/packages/Atlassian.SDK/) is using [the older v2 REST APIs](https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/). These APIs still use wiki markup in Jira text fields, while [the newer v3 APIs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/) use [Atlassian Document Format (ADF)](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). ADF is a JSON-based representation of rich text stored in Atlassian products (not just Jira anymore). Although I’m not aware of any C# libraries for ADF, the specific case of mapping tables from HTML to ADF would be easier because the node mappings are 1:1.

I only point this out because the implicit binding to the older APIs might limit the lifespan of your converter, if you do have to write it yourself.

---

<div class="post-metadata">

**Author:** ![m.herrmann](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/m.herrmann/32/37582_2.png) [@m.herrmann](https://community.developer.atlassian.com/u/m.herrmann)\
**Post date:** [April 27, 2021, 3:01pm UTC](https://community.developer.atlassian.com/t/format-jira-markup-to-html-and-vice-versa-c-atlassian-sdk/47458/3 "2021-04-27T15:01:23Z")

</div>

We tried to use the ADF format in our client side to format the Wiki Syntax for the user. It was a bit complicated to use and at first we though that we managed to get it working. That was until some of our testers tried to use attachments / user mention and stuff like that.  
Our current approach is to use the expand=renderedFields approach to render existing comments/descriptions (+ using regex to replace some urls to absolute urls as the relative urls would not work in our plugin domain)

If there is a better way, I would love to know it too

---

<div class="post-metadata">

**Author:** ![OndejMedek](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ondejmedek/32/42527_2.png) [@OndejMedek](https://community.developer.atlassian.com/u/OndejMedek)\
**Post date:** [June 30, 2021, 6:40pm UTC](https://community.developer.atlassian.com/t/format-jira-markup-to-html-and-vice-versa-c-atlassian-sdk/47458/4 "2021-06-30T18:40:57Z")

</div>

@m.herrmann maybe try [npm](https://www.npmjs.com/browse/depended/@atlaskit/editor-core) and instantiate ADF editor in the client side. (It’s pitty it has no doc).
