The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to render a Markdown Content with Forge

Gernot Grames
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2021

Hi,

i am developing a plugin with the possibility to load a remote README.md file.

But i can't find a Forge Component to render the Markdown content correctly.

Is it possible to load a 3rd Party react Module to render this?

For example https://github.com/remarkjs/react-markdown

Any ideas

Thanks

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Dugald Morrow
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 24, 2021

Hi @Gernot Grames ,

Forge functions execute in a custom NodeJS runtime which supports most NodeJS libraries. So whilst your Forge app function can include the library and convert markdown to HTML, this is all happening within the function and not the browser. If you need the HTML rendered in a browser, you'll need to use Forge's custom UI capability. https://developer.atlassian.com/platform/forge/custom-ui/

For further questions about Forge, you're better off asking our developer community at https://community.developer.atlassian.com/c/forge/45.

Regards,

Dugald

TAGS
AUG Leaders

Atlassian Community Events