-
Since it’s clear that the image alt text is plain text, it could simply be parsed as plain text. I wonder why that isn’t done. (Not that it makes much of a difference. I’m simply curious.) Input: ![_abc_]() Output (no underscores): <p><img alt="abc" src=""></p> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
HTML can't have formatting in the alt text, because it's in an attribute. But that's a parochial feature of HTML output. If we think of this feature as an 'image description', there's no reason to prevent it from having formatting, which might be used in other output formats. The formatting is stripped out in the HTML renderer. |
Beta Was this translation helpful? Give feedback.
HTML can't have formatting in the alt text, because it's in an attribute. But that's a parochial feature of HTML output. If we think of this feature as an 'image description', there's no reason to prevent it from having formatting, which might be used in other output formats. The formatting is stripped out in the HTML renderer.