Skip to main content
Solved

FME Workspace APP - Markdown URL / Link using Target Blank

  • October 28, 2024
  • 5 replies
  • 154 views

sameer
Contributor
Forum|alt.badge.img+18

Hello

I have a Workspace App in dev phase.
 


Since I cannot embed a HTML page by design or make use of dynamic user parameters to retrieve an event ID for now,  I went with the idea of using a URL / Link within the description box, (Markdown style).

URL points to SP Online

I’d like to implement target=”blank”.
[link](url){:target="_blank"} (Kramdown)


Is this possible?

 

Thanks

Sameer

Best answer by siennaatsafe

Hi @hkingsbury and @sameer,

I checked in with our development team regarding this.

We use the Marked library to render our markdown: https://marked.js.org/

The team mentioned that we intentionally strip tags like this to mitigate a vulnerability outlined here: https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener.

Because of this, it appears that enabling this functionality isn’t possible at the moment.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1632 replies
  • October 28, 2024

It appears that the markdown engine FME Flow is using doesn’t support that, it also strips the target from standard HTML

 

<a href="https://google.com" target="_blank">Opens in new tab</a>

 

I think it would be worth opening an idea to allow for links to be opened in new tabs/windows

https://community.safe.com/ideas


sameer
Contributor
Forum|alt.badge.img+18
  • Author
  • Contributor
  • 63 replies
  • October 29, 2024

It appears that the markdown engine FME Flow is using doesn’t support that, it also strips the target from standard HTML

 

<a href="https://google.com" target="_blank">Opens in new tab</a>

 

I think it would be worth opening an idea to allow for links to be opened in new tabs/windows

https://community.safe.com/ideas

 

I also tried a href as well and it failed.
I’ll submit my request as an idea.
How do I find the version of Markdown FME is running on as I could not locate this information?

 


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1632 replies
  • October 29, 2024

Some one at Safe will be able to find that out - @siennaatsafe?

 

Just linking your idea as well -

 


siennaatsafe
Safer
Forum|alt.badge.img+12
  • Safer
  • 214 replies
  • Best Answer
  • October 30, 2024

Hi @hkingsbury and @sameer,

I checked in with our development team regarding this.

We use the Marked library to render our markdown: https://marked.js.org/

The team mentioned that we intentionally strip tags like this to mitigate a vulnerability outlined here: https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener.

Because of this, it appears that enabling this functionality isn’t possible at the moment.


sameer
Contributor
Forum|alt.badge.img+18
  • Author
  • Contributor
  • 63 replies
  • October 31, 2024

Hello @siennaatsafe 

I understand however, rel="noopener" or rel="noreferrer" would always be added in my code.

This vulnerability has been patched with latest versions of Chromium (version 88+ released Jan 2021). I believe “window.opener” was the culprit. 

In my case, I’d use:
<a href="https://www.awebpage.com/" target="_blank" rel="noopener noreferrer">A Web Page</a>

I don’t think this is now a security risk unless the target is unsafe in the first instance.