pinafore icon indicating copy to clipboard operation
pinafore copied to clipboard

Support markdown headings / bold text in markdown-enabled instances

Open nolanlawson opened this issue 4 years ago • 3 comments

Some Mastodon instances (e.g. koyu.space) have custom extension to Mastodon to enable headings (h1, h2, h3, etc.). We don't currently render these in Pinafore.

Example: https://koyu.space/@yann2/105713784819505066

Screenshot from 2021-02-15 12-58-16 Screenshot from 2021-02-15 12-57-43

nolanlawson avatar Feb 15 '21 20:02 nolanlawson

Related: #1798

nolanlawson avatar Feb 15 '21 21:02 nolanlawson

Thank you, Nolan!

MarkDown is so important for me, for presenting text well, that I do make choices of what instances to chose as a Home based on having it. Glitch-Social ones, like Koyu.space, render it very well.

I use Markdown frequently on my posts at Muensterland.social - which also is a Glitch-Social instance. (Koyu has some customized code, but the text rendering is untouched from GS, I believe)

rgx1 avatar Feb 15 '21 22:02 rgx1

Hi again, Nolan.

I noticed some really well formatted MarkDown text while looking at FediLab Lite client the other day. And took a couple screenshots to share here. Might be possible to refer to their source code and see what they use for their MarkDown rendering parameters? Noticed while looking at posts :

  • Heading sizes rendered proportionally as expected (examples have H2 and H3 included).
  • Unordered List items are rendered in the same font size as regular paragraph text (in Pinafore currently they render in larger font).
  • 'Masked URLs' are done elegantly as well - it's noticeable the text is a live link, without it being distracting.

Hope this might help and save you time trying out settings. Thank you for Pinafore!

The post shown in the snapshots is located here .

FediLab-MD-Demo-1-720x750p

And the bulleted list shown below is from this post .

FediLab-MD-Demo-2-720x801p

There should have been a Space between the Bullet and the LI in the UL example above, otherwise it's very clean and nicely rendered.

rgx1 avatar Feb 23 '21 13:02 rgx1