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

Docs for triple-backticks and escaping backticks #4369

Merged
merged 2 commits into from
Nov 23, 2016

Conversation

GeoffreyBooth
Copy link
Collaborator

@GeoffreyBooth GeoffreyBooth commented Nov 20, 2016

Documentation for #4357. Demonstrates the new triple-backtick syntax, and how to escape backticks and escaped escaped backticks.

@GeoffreyBooth GeoffreyBooth changed the title Backticks docs Docs for triple-backticks and escaping backticks Nov 22, 2016
<%= codeFor('embedded_escaped', 'markdown()') %>
<p>
You can embed blocks of JavaScript using triple backticks. Within triple-backtick
blocks, single backticks are ignored.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Within triple-backtick blocks, single backticks are ignored.

That sentence stood out a bit to me while first reading it. "Ignored – how? What exactly does that mean?" Then, I realized that the sentence probably exists to tell that it is a better idea to use triple-backticks than to escape backticks inside single-backtick blocks. If that's the case, perhaps change this paragraph to something like this:

You can also embed blocks of JavaScript using triple backticks. That's easier than escaping backticks, if you need them inside your JavaScript block.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be an improvement.

@GeoffreyBooth
Copy link
Collaborator Author

Sure. How about now?

@GeoffreyBooth GeoffreyBooth merged commit 992eb49 into jashkenas:master Nov 23, 2016
@GeoffreyBooth GeoffreyBooth deleted the backticks-docs branch November 23, 2016 06:09
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

Successfully merging this pull request may close these issues.

3 participants