nea / MarkdownViewerPlusPlus

A Notepad++ Plugin to view a Markdown file rendered on-the-fly
MIT License
1.17k stars 143 forks source link

Feature Request: smart quotes #53

Open davhunter opened 6 years ago

davhunter commented 6 years ago

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”
DavidBruchmann commented 6 years ago

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

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.