Permalink
Browse files

XML/HTML code now cleaned up using Nokogiri by default

Closes #208.
  • Loading branch information...
1 parent eb1d94b commit 98074e24368fa405c95cbfff217c6a5870975a5e @h3rald committed May 13, 2012
@@ -2,7 +2,6 @@
ref_macro[
@n[add]
@desc[Adds two or more integers together.]
- @params[Two or more integer values.]
@example[=add[2\|5\|7]=]
]
@@ -227,7 +226,6 @@ Checks a string against a regular expression.
ref_macro[
@n[multiply]
@desc[Multiplies two or more integers together.]
- @params[Two or more integer values.]
@example[=add[3\|5\|9]=]
]
@@ -325,7 +323,6 @@ s/sub[This is a test string\|/a test/\|another test]
ref_macro[
@n[subtract]
@desc[Subtracts two or more integers together.]
- @params[Two or more integer values.]
@example[=add[10\|5\|2]=]
]
@@ -3,7 +3,7 @@ If you're a programmer, chances are that you're going to include some source cod
Cosider the following piece of ruby code:
]
- highlight[=mediawiki|
+ highlight[=text|
def find_child(&block)
children.each do \|c\|
c.descend do \|node, level\|
@@ -14,7 +14,7 @@ def find_child(&block)
end
=]
p[It can be wrapped in a highlight macro, like so:]
- highlight[=mediawiki|
+ highlight[=text|
highlight[\=ruby\|
def find_child(&block)
children.each do \\\/\|c\\\/\|
View
@@ -37,23 +37,27 @@
:extension: .html
:filter_target: html
:macro_reps: html
+ :clean_source: true
:html5:
:multifile: false
:extension: .html
:filter_target: html
:macro_reps: html5
+ :clean_source: true
:pdf:
:multifile: false
:extension: .pdf
:filter_target: html
:through: html
:generator: prince
:macro_reps: html
+ :clean_source: false
:web:
:multifile: true
:extension: .html
:filter_target: html
:macro_reps: html
+ :clean_source: true
:layout_dir: web
:layouts:
:topic: topic
@@ -64,6 +68,7 @@
:extension: .html
:filter_target: html
:macro_reps: html5
+ :clean_source: true
:layout_dir: web5
:layouts:
:topic: topic
@@ -74,6 +79,7 @@
:extension: .epub
:filter_target: html
:generator: calibre
+ :clean_source: false
:calibre:
# See options at http://calibre-ebook.com/user_manual/cli/ebook-convert-3.html
"output-profile": nook
@@ -83,6 +89,7 @@
:extension: .mobi
:filter_target: html
:generator: calibre
+ :clean_source: false
:calibre:
# See options at http://calibre-ebook.com/user_manual/cli/ebook-convert-3.html
"no-inline-toc":
Oops, something went wrong.

0 comments on commit 98074e2

Please sign in to comment.