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

quotes are not handled properly in monospace mode #36

Open
ghprince opened this issue Aug 19, 2015 · 3 comments
Open

quotes are not handled properly in monospace mode #36

ghprince opened this issue Aug 19, 2015 · 3 comments

Comments

@ghprince
Copy link

Orgmode::Parser.new("~a~").to_html # => "<p><code>a</code></p>\n" Correct
Orgmode::Parser.new("~'~").to_html # => "<p>~&#8217;~</p>\n" Incorrect
Orgmode::Parser.new('~"~').to_html # => "<p>~&#8221;~</p>\n" Incorrect

I come here because https://github.com/syl20bnr/spacemacs/blob/master/contrib/shell/README.org
shows strange behaviour

screenshot 2015-08-20 00 08 07

@duianto
Copy link

duianto commented Feb 1, 2018

The quotes inside ~ (tilde) symbols issue, might have been fixed, because SPC ' is shown correctly on the Spacemacs shell layer page: https://github.com/syl20bnr/spacemacs/tree/582f9aa45c2c90bc6ec98bccda33fc428e4c6d48/layers/%2Btools/shell#key-bindings


But a similar thing is occurring with quotes inside verbatim symbols (equal signs).

For example:
Press =cs”’= inside

should be shown as:
Press cs”’ inside

but the = equals signs are visible.

source: https://github.com/emacs-evil/evil-surround/blob/5a20c9757eff64e1567d313eb254126aef2bf3b2/readme.org#examples

However, there seems to be one case where a quote doesn't make the equal signs appear.
It's in the next example on the same evil-surround page:
Now press cs'<q> to change it to

cs'<q> is shown as markdown inline code.

@melioratus
Copy link

melioratus commented Jun 9, 2018

Unfortunately, the root cause behind why ~'~ and ~"~ renders this way is due to the official org-syntax specification for text markup. See gist for examples related to issue #48.

@talyz
Copy link

talyz commented Aug 13, 2020

I reported this issue to the Org mode developers and the spec is now updated and allows any characters but whitespace in the border - https://orgmode.org/worg/dev/org-syntax.html#Emphasis_Markers.

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

4 participants