storyblok-rich-text-renderer icon indicating copy to clipboard operation
storyblok-rich-text-renderer copied to clipboard

Bold and italic markup

Open lorenaramonda opened this issue 3 years ago • 2 comments

Hello @MarvinRudolph, could we use <strong> and <em> instead of <b> and <i> as markup for bold and italic? 😬 I can also send a PR by myself if you agree.

Let me know, thanks!

lorenaramonda avatar Nov 27 '21 14:11 lorenaramonda

I agree with you but it depends the way you the content is written. I might be a good idea to have a setting for such a thing.

Technically <b> and <i> are just aesthetics, while <strong> and <em> are more important if, let's say, someone is using a screen reader to parse your website. (https://stackoverflow.com/questions/271743/whats-the-difference-between-b-and-strong-i-and-em)

phaberest avatar Dec 16 '21 02:12 phaberest

I agree. A setting could suit for everyone. In most cases one would choose semantic <strong> and <em>, but there could be cases where one preferes <b> and <i>. So giving the flexibility to choose is a good solution.

lorenaramonda avatar Dec 16 '21 08:12 lorenaramonda