mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
136 lines
4.9 KiB
Text
136 lines
4.9 KiB
Text
1
|
|
//- - - - - - - - -//
|
|
This should 'be' replaced
|
|
//- - - - - - - - -//
|
|
<p>This should ‘be’ replaced</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
2
|
|
//- - - - - - - - -//
|
|
This should "be" replaced
|
|
//- - - - - - - - -//
|
|
<p>This should “be” replaced</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
3
|
|
//- - - - - - - - -//
|
|
**--** *---* a...<< b>>
|
|
//- - - - - - - - -//
|
|
<p><strong>–</strong> <em>—</em> a…« b»</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
4
|
|
//- - - - - - - - -//
|
|
Some say '90s, others say 90's, but I can't say which is best.
|
|
//- - - - - - - - -//
|
|
<p>Some say ’90s, others say 90’s, but I can’t say which is best.</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
5: contractions
|
|
//- - - - - - - - -//
|
|
Alice's, I'm ,Don't, You'd
|
|
|
|
I've, I'll, You're
|
|
|
|
[Cat][]'s Pajamas
|
|
|
|
Yahoo!'s
|
|
|
|
[Cat]: http://example.com
|
|
//- - - - - - - - -//
|
|
<p>Alice’s, I’m ,Don’t, You’d</p>
|
|
<p>I’ve, I’ll, You’re</p>
|
|
<p><a href="http://example.com">Cat</a>’s Pajamas</p>
|
|
<p>Yahoo!’s</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
6: "" after digits are an inch
|
|
//- - - - - - - - -//
|
|
My height is 5'6"".
|
|
//- - - - - - - - -//
|
|
<p>My height is 5'6"".</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
7: quote followed by ,.?! and spaces maybe a closer
|
|
//- - - - - - - - -//
|
|
reported "issue 1 (IE-only)", "issue 2", 'issue3 (FF-only)', 'issue4'
|
|
//- - - - - - - - -//
|
|
<p>reported “issue 1 (IE-only)”, “issue 2”, ‘issue3 (FF-only)’, ‘issue4’</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
8: handle inches in qoutes
|
|
//- - - - - - - - -//
|
|
"Monitor 21"" and "Monitor""
|
|
//- - - - - - - - -//
|
|
<p>“Monitor 21"” and “Monitor”"</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
9: Closing quotation marks within italics
|
|
//- - - - - - - - -//
|
|
*"At first, things were not clear."*
|
|
//- - - - - - - - -//
|
|
<p><em>“At first, things were not clear.”</em></p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
10: Closing quotation marks within boldfacing
|
|
//- - - - - - - - -//
|
|
**"At first, things were not clear."**
|
|
//- - - - - - - - -//
|
|
<p><strong>“At first, things were not clear.”</strong></p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
11: Closing quotation marks within boldfacing and italics
|
|
//- - - - - - - - -//
|
|
***"At first, things were not clear."***
|
|
//- - - - - - - - -//
|
|
<p><em><strong>“At first, things were not clear.”</strong></em></p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
12: Closing quotation marks within boldfacing and italics
|
|
//- - - - - - - - -//
|
|
***"At first, things were not clear."***
|
|
//- - - - - - - - -//
|
|
<p><em><strong>“At first, things were not clear.”</strong></em></p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
13: Plural possessives
|
|
//- - - - - - - - -//
|
|
John's dog is named Sam. The Smiths' dog is named Rover.
|
|
//- - - - - - - - -//
|
|
<p>John’s dog is named Sam. The Smiths’ dog is named Rover.</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
14: Links within quotation marks and parenthetical phrases
|
|
//- - - - - - - - -//
|
|
This is not difficult (see "[Introduction to Hugo Templating](https://gohugo.io/templates/introduction/)").
|
|
//- - - - - - - - -//
|
|
<p>This is not difficult (see “<a href="https://gohugo.io/templates/introduction/">Introduction to Hugo Templating</a>”).</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
15: Quotation marks within links
|
|
//- - - - - - - - -//
|
|
Apple's early Cairo font gave us ["moof" and the "dogcow."](https://www.macworld.com/article/2926184/we-miss-you-clarus-the-dogcow.html)
|
|
//- - - - - - - - -//
|
|
<p>Apple’s early Cairo font gave us <a href="https://www.macworld.com/article/2926184/we-miss-you-clarus-the-dogcow.html">“moof” and the “dogcow.”</a></p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
16: Single closing quotation marks with slang/informalities
|
|
//- - - - - - - - -//
|
|
"I'm not doin' that," Bill said with emphasis.
|
|
//- - - - - - - - -//
|
|
<p>“I’m not doin’ that,” Bill said with emphasis.</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
17: Closing single quotation marks in quotations-within-quotations
|
|
//- - - - - - - - -//
|
|
Janet said, "When everything is 'breaking news,' nothing is 'breaking news.'"
|
|
//- - - - - - - - -//
|
|
<p>Janet said, “When everything is ‘breaking news,’ nothing is ‘breaking news.’”</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
18: Opening single quotation marks for abbreviations
|
|
//- - - - - - - - -//
|
|
We're talking about the internet --- 'net for short. Let's rock 'n roll!
|
|
//- - - - - - - - -//
|
|
<p>We’re talking about the internet — ’net for short. Let’s rock ’n roll!</p>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|