Skip to content

Comments 0.2.7: Comment markdown shows formatted

Comments 0.2.7 shows comments formatted: bold, italics, lists, quotes, links and code written in the Leaf editor now display as such, instead of as raw markdown.

The text is rendered through core’s markdown component and its HTML sanitizer. The module brings its own small stylesheet, so lists keep their bullets and code gets a background even where the host app has no typography plugin. Links take the theme’s primary colour.

Fixed: a signed-in user could suddenly see “Sign in to post a comment” when the page refreshed the thread, for example after drawing an annotation in the media viewer. The box now stays available.

Upgrading

leaf is now a required dependency at ~> 0.2.22, which also fixes links doubling when a comment with a link is edited.

 

 


Comments 0.2.7. Install or update: {:phoenix_kit_comments, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.