sucresware / 4sucres

Parce qu'à 2 on était pas assez.
https://4sucres.org
9 stars 4 forks source link

Alternative à Parsedown #75

Closed mgkprod closed 3 years ago

mgkprod commented 5 years ago

J'ai trouvé ce package qui me parait intéressant : https://github.com/cebe/markdown

J'ai bien aimé dans la FAQ :

Why another markdown parser? The only implentation that I have found that uses this approach is Parsedown [...]. Parsedown however is an implementation that focuses on speed and implements its own flavor [...] in one class and at the time of this writing was not easily extensible.

Permet de résoudre #42 dans la foulée :

$parser->enableNewlines = true to convert all newlines to <br/> tags

Tu veux t'en charger @hawezo ?

innocenzi commented 5 years ago

Oui ça m'intéresse, je peux peut-être voir ça ce soir, au pire ce week-end

innocenzi commented 5 years ago

Je commencerai à m'en occuper une fois que tout sera au propre (notamment https://github.com/4sucres/board/tree/hawezo-master).

mgkprod commented 5 years ago

Pour autoriser l'HTML et se sécuriser, y'a moyen de passer par un purifier comme celui-ci 👍 https://kuztek.com/blog/use-laravel-purifier-security

mgkprod commented 3 years ago

Plus d'actualité