anchorcms/anchor-cms

Feature: Markdown on comments

Closed this issue · 3 comments

Comments should allow markdown formatting.

Currently I am using Parsedown to show the comments with markdown applied.

$Parsedown->text(html_entity_decode(comment_text())); which seems to do the job but is quite hacky. It would be nice to have the markdown option available.

Also as another side request, it would also be nice to implement syntax highlighting because as I tested it, code fencing with back-tick and specifying language doesn't highlight code. I'm using highlightjs to do this currently but again, would be a nice feature to have by default.

Hi there, thanks for this but like I said in #210 (comment) can you request for features on FeatHub please? This is where we manage all new features that are added to Anchor.

@daviddarnes The FeatHub page looks really out of date with posts dating back months, thus I thought it would be better to post here. Sorry about that.

@redrails,

Be careful with that markdown formatting. It will allow XXS. Instead, do this:

$Parsedown->setMarkupEscaped(true)->text(html_entity_decode(comment_text()));