Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: smart quotes #53

Open
davhunter opened this issue Nov 21, 2017 · 1 comment
Open

Feature Request: smart quotes #53

davhunter opened this issue Nov 21, 2017 · 1 comment

Comments

@davhunter
Copy link

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
Copy link

DavidBruchmann commented Nov 22, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants