Bienvenue, Invité
Nom d'utilisateur : Mot de passe :


This Help forum is for issues relates to the latest release (1.7.10/11/12). For issues related to development versions please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

SUJET : markdown and html

markdown and html il y a 2 semaines 3 jours #1

  • richard2004
  • Portrait de richard2004
  • Hors Ligne
  • New
  • Messages : 3
webtrees uses markdown version commonmark.org

One their website there is a test page where you can try a code. You can find that page here: https://spec.commonmark.org/dingus/

When you try there the html code bold (starts with b and ends with /b) you can see the text is bold.
When you try there the html code hyperlink (starts with a href...... and ends with /a) you can see the text is a hyperlink.

When I try the same in webtrees website (version 1.7.14) it doesn't work. It only shows the <b> and </b>

I use the code in a shared note. Here is the link to an example on my site: https://www.keycam.nl/note.php?nid=N1&ged=keycam

How can I fix it?
L'administrateur a désactivé l'accès en écriture pour le public.

markdown and html il y a 2 semaines 3 jours #2

  • norwegian_sardines
  • Portrait de norwegian_sardines
  • Hors Ligne
  • Gold
  • Messages : 1529
Did you read this article on the wiki?
Ken
L'administrateur a désactivé l'accès en écriture pour le public.

markdown and html il y a 2 semaines 1 jour #3

  • richard2004
  • Portrait de richard2004
  • Hors Ligne
  • New
  • Messages : 3
Thank you for your reply.
In the article there is nothing about markdown and html.
But on https://spec.commonmark.org/dingus/ there is.

Richard
L'administrateur a désactivé l'accès en écriture pour le public.

markdown and html il y a 2 semaines 1 jour #4

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 11221
This is working as designed.

GEDCOM is a text format. webtrees applies markdown formatting to text, not to html.

Markdown *allows* you to mix HTML and markdown. It does not *require* you to allow HTML.

There is also a security risk. User generated HTML can easily be abused.

e.g.

<span onhover="alert(123)">hello world</span>
<a onerror="alert(123)" src="no-such-file.jpg">
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.
Propulsé par Kunena