Skip to main content
Solved

FME Workspace APP - Markdown URL / Link using Target Blank

  • October 28, 2024
  • 5 replies
  • 91 views

sameer
Contributor
Forum|alt.badge.img+15

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.

View original
Did this help you find an answer to your question?

5 replies

hkingsbury
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • 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+15
  • Author
  • Contributor
  • October 29, 2024
hkingsbury wrote:

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+50
  • Celebrity
  • 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+10
  • Safer
  • 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+15
  • Author
  • Contributor
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings