Skip to content
Browse files

Allow quotes in styles so you can do things like listing font-familie…

…s. [#166 state:resolved]
  • Loading branch information...
1 parent 0a481fb commit 31a35a01a7a1223154da6ab04257225ee12e891a @jgarber jgarber committed
Showing with 4 additions and 3 deletions.
  1. +1 −0 CHANGELOG
  2. +1 −1 ext/redcloth_scan/redcloth_common.rl
  3. +2 −2 spec/fixtures/basic.yml
View
1 CHANGELOG
@@ -1,5 +1,6 @@
=== Edge
+* Allow quotes in styles so you can do things like listing font-families. [Jason Garber]
* Fix uninitialized constant Gem::Specification::PLATFORM_CROSS_TARGETS in Rails [Jason Garber]
* Allow uppercase letters in ID attribute even though it's invalid [Jason Garber]
* Fix compatibility with newer Echoe, by using full-name for Platform [Flameeyes]
View
2 ext/redcloth_scan/redcloth_common.rl
@@ -18,7 +18,7 @@
# textile element attributes
class = [a-z0-9\- _]+ ;
id = [A-Za-z0-9\-_]+ ;
- style_chars = [a-z0-9: ;\-_#&.%];
+ style_chars = [A-Za-z0-9: ;\-_#&.%'"];
style_url = "url(" [a-z0-9'".\\/#?=+@_\-]+ ")";
style = style_chars (style_chars+ | style_url)* ; # maybe put in uri when in url()
language = [a-z\-_]+ ;
View
4 spec/fixtures/basic.yml
@@ -380,8 +380,8 @@ html: <p class="example1" id="big-red2">Red here</p>
---
name: css style
desc: Style settings can be provided directly by surrounding them in curly braces.
-in: p{color:blue;margin:30px;font-size:120%;}. Spacey blue
-html: <p style="color:blue;margin:30px;font-size:120%;">Spacey blue</p>
+in: p{color:blue;margin:30px;font-size:120%;font-family:'Comic Sans'}. Spacey blue
+html: <p style="color:blue;margin:30px;font-size:120%;font-family:&#39;Comic Sans&#39;;">Spacey blue</p>
---
name: language designations
desc: Language designations can be given between angel brackets.

0 comments on commit 31a35a0

Please sign in to comment.
Something went wrong with that request. Please try again.