aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/asciidoc.conf
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2008-11-18 00:41:20 +0100
committerXavier Noria <fxn@hashref.com>2008-11-18 00:41:20 +0100
commit90a1a9a2253381ba0799848beadf29232affb8d5 (patch)
tree2dee223e16347b9701b032a36b5521340bb57f3e /railties/doc/guides/asciidoc.conf
parent74569f3e204b92e7c96a920b9bfde785323c61f4 (diff)
downloadrails-90a1a9a2253381ba0799848beadf29232affb8d5.tar.gz
rails-90a1a9a2253381ba0799848beadf29232affb8d5.tar.bz2
rails-90a1a9a2253381ba0799848beadf29232affb8d5.zip
adding a config file for asciidoc, needs latest mizuho to take effect
Diffstat (limited to 'railties/doc/guides/asciidoc.conf')
-rw-r--r--railties/doc/guides/asciidoc.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/railties/doc/guides/asciidoc.conf b/railties/doc/guides/asciidoc.conf
new file mode 100644
index 0000000000..f8e0c0a32c
--- /dev/null
+++ b/railties/doc/guides/asciidoc.conf
@@ -0,0 +1,26 @@
+# Asciidoc substitutes some characters by default, those are called
+# "replacements" in the docs. For example => becomes a unicode arrow.
+#
+# We override replacements to allow copy & paste of source code.
+
+[replacements]
+
+# Ellipsis
+(?<!\\)\.\.\.=...
+\\\.\.\.=...
+
+# -> right arrow
+(?<!\\)-&gt;==-&gt;
+\\-&gt;=-&gt;
+
+# => right double arrow
+(?<!\\)\=&gt;==&gt;
+\\\=&gt;==&gt;
+
+# <- left arrow
+(?<!\\)&lt;-=&lt;-
+\\&lt;-=&lt;-
+
+# <= left double arrow
+(?<!\\)&lt;\==&lt;=
+\\&lt;\==&lt;= \ No newline at end of file