Skip to content

Commit

Permalink
Include an ending question mark in a citation. [#109 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber committed May 30, 2009
1 parent 200b459 commit 9a4c377
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,5 +1,7 @@
=== Edge

* Include an ending question mark in a citation. [Jason Garber]

* Preserve leading whitespace in pre and bc blocks. [Jason Garber]

* Don't add hard break after preexisting <br />. [Jason Garber]
Expand Down
2 changes: 1 addition & 1 deletion ext/redcloth_scan/redcloth_inline.rl
Expand Up @@ -60,7 +60,7 @@
sub_phrase = ( "~" when starts_phrase) >X ( mtext ) >A %T :>> ( "~" end_markup_phrase ) ;
span = "[%" >X mtext >A %T :> "%]" ;
span_phrase = (("%" when starts_phrase) >X ( mtext ) >A %T :>> ( "%" end_markup_phrase )) ;
cite = "["? "??" >X mtext >A %T :> "??" "]"? ;
cite = "["? "??" >X mtext >A >ATTR :>> ("?" @T ( "?" | "?" @{ STORE_ATTR("text"); } "?" %SET_ATTR )) "]"? ;
ignore = "["? "==" >X %A mtext %T :> "==" "]"? ;
snip = "["? "```" >X %A mtext %T :> "```" "]"? ;

Expand Down
10 changes: 10 additions & 0 deletions spec/fixtures/basic.yml
Expand Up @@ -978,3 +978,13 @@ in: |-
html: |-
<pre><code> false
} else {</code></pre>
---
name: citation ending with question mark
in: "??What the Story Morning Glory???"
html: |-
<p><cite>What the Story Morning Glory?</cite></p>
---
name: citation including question mark
in: "??What's the Matter with Kansas? How Conservatives Won the Heart of America?? is a great book!"
html: |-
<p><cite>What&#8217;s the Matter with Kansas? How Conservatives Won the Heart of America</cite> is a great book!</p>

0 comments on commit 9a4c377

Please sign in to comment.