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

configurable fontification of identifiers_with_underscores, etc. #749

Closed
seabadger opened this issue Feb 22, 2023 · 1 comment
Closed

configurable fontification of identifiers_with_underscores, etc. #749

seabadger opened this issue Feb 22, 2023 · 1 comment

Comments

@seabadger
Copy link

Underscore characters ('_') that occurs inside a word-like string (e.g. foo_bar, foo_bar_baz) is being interpreted as markup, and fontified accordingly. From what I've read, there's no 'standard' behavior for this, i.e. different implementations make different choices. Making this configurable would allow a given user to use their preferred behavior.

Expected Behavior

Underscore characters in the middle of a word treated as literal underscores (i.e., as if '_' was used).

Actual Behavior

A line like
foo_bar some words baz_bam
gets rendered with italicized text between underscores

Steps to Reproduce

Type the line
foo_bar some words baz_bam
into a markdown buffer.

Backtrace

N/A

Software Versions

  • Markdown Mode: 2.6-alpha
  • Emacs: 28.2
  • OS: macOS Monterey 12.6.3
@syohex
Copy link
Collaborator

syohex commented Feb 23, 2023

#448 (comment)

Please see the above comment. markdown-mode implements original markdown specification and it says you need to escape underscores in such case. So you need to write like foo\_bar some words baz\_bam or use gfm-mode instead of markdown-mode.

@syohex syohex closed this as completed Feb 23, 2023
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