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

Don't collapse interior spaces in code spans #532

Closed
jgm opened this Issue Aug 24, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@jgm
Copy link
Member

jgm commented Aug 24, 2018

See the proposal here:
https://talk.commonmark.org/t/leading-and-trailing-white-spaces-in-code-blocks/628/18

  • Collapse one initial and one final space, but only if there is both initial and final space. So, for example BACKTICK + SPACE + A + BACKTICK gives you a code span with SPACE + A, while BACKTICK + SPACE + A + SPACE + BACKTICK gives you one with just A.
  • Do not collapse interior spaces.
  • Treat an interior newline as a space unless it’s adjacent to a space, in which case ignore it.

@jgm jgm added this to the 0.29 milestone Aug 25, 2018

@jgm jgm closed this in e121b4e Aug 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment