microdotblog / sunlit

Publish photos to your own blog — hosted by Micro.blog or compatible blogs using WordPress or Micropub — and discover beautiful photos from other users.
https://sunlit.io
MIT License
50 stars 7 forks source link

Does Compose needs a character counter? #136

Open cheesemaker opened 4 years ago

manton commented 3 years ago

Answer: probably. The Micro.blog app counts characters after any Markdown has been processed and ignoring HTML tags. So, it runs the text through Markdown → HTML, then gets the text version of the HTML and counts that. So **hi** is only 2 characters, and so is <a href="">hi</a>.

If a post is longer and shows the title field (4+ photos in Sunlit, I think), the character counter should be hidden.