-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1335 from richdouglasevans/issue/1334-no-typo-sub…
…s-in-certain-blocks Fix typographic substitution in (pre|code|kbd|script) blocks when smartypants=true
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<pre>&</pre> | ||
<p><code>--foo</code> | ||
<kbd>---foo</kbd></p> | ||
<script>--foo</script> | ||
|
||
<p>Ensure that text such as custom tags that happen to | ||
begin with the same letters as the above tags don’t | ||
match and thus benefit from Smartypants-ing.</p> | ||
|
||
<p><script-custom>–foo</script-custom> | ||
<code>--foo</code> <codebar –foo codebar></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
smartypants: true | ||
description: SmartyPants does not modify characters within <pre>, <code>, <kbd>, or <script> tag blocks. | ||
spec: https://daringfireball.net/projects/smartypants/ | ||
--- | ||
<pre>&</pre> | ||
<code>--foo</code> | ||
<kbd>---foo</kbd> | ||
<script>--foo</script> | ||
|
||
Ensure that text such as custom tags that happen to | ||
begin with the same letters as the above tags don't | ||
match and thus benefit from Smartypants-ing. | ||
<script-custom>--foo</script-custom> | ||
`--foo` <codebar --foo codebar> |