MarkdownViewerPlusPlus icon indicating copy to clipboard operation
MarkdownViewerPlusPlus copied to clipboard

Feature Request: smart quotes

Open davhunter opened this issue 8 years ago • 1 comments

I don't know if this is a common thing in markdown or not, so maybe it should be an option instead of a default feature, but it would be nice if the previewer showed smart quotes in its preview. When markdown is entered on sites like Tumblr it does the smart quotes -- though, as I say, I don't know if it's applicable in all situations where markdown is used.

For example:

"this text won't be rendered with smart quotes"

would become:

“this text won’t be rendered with smart quotes”

davhunter avatar Nov 21 '17 21:11 davhunter

There exist at least three different types of "quotes", I think it's related to the language-settings:

  • “these quotes are your example”
  • «these quotes are used in France»
  • „These quotes are used in Germany‟

The the document-language had to be known, and then the corresponding locals be loaded to get the defined quotes. That's quite a tough task especially if several languages are used mixed it's impossible to make it always right because (as far as I know) markdown never supports language-marking for documents or even paragraphs. Based on this the only professional solution would be to have a standard-replacement perhaps but by each click on a quoting-sign still the option to chose the right combination. Also a general search-and-replace-option for a whole document is thinkable but would be performed than before paragraph-related adjustments. "paragraph-related" above can be anything, a word, a character, a sentence, a paragraph, so see it as the content between the quotes only.

DavidBruchmann avatar Nov 22 '17 02:11 DavidBruchmann