Use character as is instead of entity for converted typographical punctuation.

chocolate.camera's Avatar

chocolate.camera

24 Sep, 2011 08:59 PM

I have a deep dislike of entities of any kind, be them HTML, hex, unicode or whatever. With UTF-8 encoding being declared with a meta tag (and nowadays why would not anyone), entities become superfluous and serve exclusively to hinder HTML code readability and editability.

Marked seems to use Unicode entities for some autoconverted typographical punctuation, at least for em/en dashes and single/double quotes. Note that it does respect the real characters if they are entered manually, so it is not like it is protecting the text content from being mangled if a meta tag declares an inappropriate encoding (or none at all for that matter).

Please, make Marked convert to the real characters instead of the entities.

  1. Support Staff 1 Posted by Brett on 25 Sep, 2011 01:47 AM

    Brett's Avatar

    It's my opinion that HTML isn't designed to be readable. The conversions ensure compatibility across the widest range of browsers.

    That being said, it's not something Marked can control. I use the standard multimarkdown PEG implementation and this is a feature that has no way to disable without turning off all typographic functions entirely. If you would like to see a flag added for this, please contact Fletcher Penney, author of MultiMarkdown, by filing a ticket on github.

  2. Brett closed this discussion on 25 Sep, 2011 01:47 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac