Question Markdown, HTMLPurifier and prohibited HTML
- ddrury
- Topic Author
- Offline
- Senior Member
Less
More
10 years 1 month ago - 10 years 1 month ago #1
by ddrury
--
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
Markdown, HTMLPurifier and prohibited HTML was created 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.
- JustCarmen
- Offline
- Elite Member
10 years 1 month ago - 10 years 1 month ago #2
by JustCarmen
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
Replied by JustCarmen on topic Markdown, HTMLPurifier and prohibited HTML
Maybe you did something wrong. Because when I use the markdown syntax:
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
it will end up as plain text.
Code:
[test](http://www.test.com)
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
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
- Greetings from Utrecht, Holland
10 years 1 month ago #3
by bertkoor
stamboom.BertKoor.nl runs on webtrees v1.7.13
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.
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
10 years 1 month ago #4
by ddrury
--
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
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.
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.