Web based family history software

Question Markdown, HTMLPurifier and prohibited HTML

  • ddrury
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago - 10 years 1 month ago #1 by ddrury
I've been playing with markdown and have noticed it's not possible to create a link - It just displays as a line of text. I presume this is HTMLPurifier doing it's thing. Is this for security? If so is it a step too far, after all, only responsible people add stuff don't they :-\

--
Dave

Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Last edit: 10 years 1 month ago by ddrury. Reason: spelling

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #2 by JustCarmen
Replied by JustCarmen on topic Markdown, HTMLPurifier and prohibited HTML
Maybe you did something wrong. Because when I use the markdown syntax:
Code:
[test](http://www.test.com)
I do get a link.

Edit: sorry I was too quick. It doesn't work when you just enter the plain link and it should.
So when you just enter
Code:
http://www.test.com
it will end up as plain text.


Carmen
Designer of the JustLight theme (comes with a light and dark color palette), Fancy Imagebar, Fancy Research Links and Fancy Treeview for webtrees 2


Check my website at www.justcarmen.nl
Last edit: 10 years 1 month ago by JustCarmen.

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Away
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
10 years 1 month ago #3 by bertkoor
Replied by bertkoor on topic Markdown, HTMLPurifier and prohibited HTML
Whether it 'should', I don't know. It was old behaviour of webtrees anyway.
According to the MarkDown documentation, a bare text wouldn't work.
See daringfireball.net/projects/markdown/syntax#link

Some markdown dialects have done some modifications to make bare links or just the url within [ ] characters make a clickable link. Would be nice to have a way to avoid duplication of the url if that is what the label should be.

stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

  • ddrury
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago #4 by ddrury
Replied by ddrury on topic Markdown, HTMLPurifier and prohibited HTML
Note to self: engage brain before posting!!

Thanks to JustCarmen's example, I noticed (eventually) that I'd wrapped the URL in curly braces.

Sorry everyone for the noise.

--
Dave

Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}