sveltia/sveltia-cms

[Enhancement] Basic markdown support in collection's page (entry/file titles)

Closed this issue · 5 comments

When showing a collection, it would be nice if entry/file titles were rendered using a basic Markdown syntax (like the one allowed in description field, but maybe without link support).

Currently, a title such as "A post about emphasis" is rendered in collection list as "A post about *emphasis*"...

Got it. There is one more related thing I want to solve:

I’ll take care both.

Shipped v0.46.0 with the fix.

@kyoshino it works as expected, but then I can catch another issue: the sorting of entries, when made by title field, is still done without the Markdown rendering, making e.g. entries whose title begins with *emphasis* appear as first entry in the list, not in its normal positioning. In the example below, the entry "Markdown reference" should be listed between "January text" and "Perpendicular text", but it's listed as first item because of the emphasis in its first word (which by the way gets nicely rendered):

  • Markdown reference
  • A post
  • January text
  • Perpendicular text

Sorry, I've only noted this now... Thank you anyway!

Will check.

The sorting issue is fixed in v0.46.2