Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Writing Articles: How to stop this app from auto creating links from urls in source code blocks?

Solved Go to solution

Writing Articles: How to stop this app from auto creating links from urls in source code blocks?

Super Collaborator

I am trying to write a new article, but when I put code boxes into the article, every save changes any urls to <a link tags.  Then another save does same thing to the link text, and ends up trashing the content.

 

Can anyone help?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Writing Articles: How to stop this app from auto creating links from urls in source code blocks?

Community Manager

Thank you for reporting this @stevenmatison . 

 

I tested this out and was able to recreate the issue. I pasted in one of your URLS (http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo) into an article a few ways to see how they would be saved. 

 

It appears that when added to the article without using the insert/edit code function the text becomes hyperlinked as expected. However when using the function it is converted into HTML. I'll need to investigate further on what is causing this. 

 

In the meantime, a work around would be to select preformatted text style instead of insert/edit code. 

 

Screen Shot 2019-11-21 at 5.03.37 PM.png

 

This would give you the appearance of the code box without the conversion of links to HTML.



Cy Jervis, Community Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:
Community Guidelines
How to use the forum
3 REPLIES 3

Re: Writing Articles: How to stop this app from auto creating links from urls in source code blocks?

Super Collaborator

here is a single link from a repo command after just 3 saves:

 

<a href="<a href="<a href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo" target="_blank">http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo</a>" target="_blank"><a href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo</a" target="_blank">http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo</a</a>>" target="_blank"><a href="<a href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo</a" target="_blank">http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo</a</a>" target="_blank"><a href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo</a</a" target="_blank">http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo</a</a</a>>> && yum --enablerepo=extras install epel-release -y && yum install nano java java-devel ambari-server ambari-agent -y && ambari-server setup -s && ambari-server install-mpack --mpack=<a href="<a href="<a href="<a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a>" target="_blank"><a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a>>" target="_blank"><a href="<a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a>" target="_blank"><a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a</a>>>" target="_blank"><a href="<a href="<a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a>" target="_blank"><a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a</a>>" target="_blank"><a href="<a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a</a>" target="_blank"><a href="http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a</a" target="_blank">http://public-repo-1.hortonworks.com/HDF/amazonlinux2/3.x/updates/3.4.1.1/tars/hdf_ambari_mp/hdf-ambari-mpack-3.4.1.1-4.tar.gz</a</a</a</a>>>>
Highlighted

Re: Writing Articles: How to stop this app from auto creating links from urls in source code blocks?

Community Manager

Thank you for reporting this @stevenmatison . 

 

I tested this out and was able to recreate the issue. I pasted in one of your URLS (http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo) into an article a few ways to see how they would be saved. 

 

It appears that when added to the article without using the insert/edit code function the text becomes hyperlinked as expected. However when using the function it is converted into HTML. I'll need to investigate further on what is causing this. 

 

In the meantime, a work around would be to select preformatted text style instead of insert/edit code. 

 

Screen Shot 2019-11-21 at 5.03.37 PM.png

 

This would give you the appearance of the code box without the conversion of links to HTML.



Cy Jervis, Community Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:
Community Guidelines
How to use the forum

Re: Writing Articles: How to stop this app from auto creating links from urls in source code blocks?

Super Collaborator

Thank you!!

Don't have an account?
Coming from Hortonworks? Activate your account here