summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-04 19:14:39 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-04 19:14:39 +0200
commitd8e6a7412c51e827616cee03a4b657b6cde03b95 (patch)
tree4f7314147f3f683b20032ce1db564d7660aa886e /rst_context.lua
parent31151b875092dbff1746194f041adce2ab9743d2 (diff)
downloadcontext-rst-d8e6a7412c51e827616cee03a4b657b6cde03b95.tar.gz
block_quotes
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/rst_context.lua b/rst_context.lua
index 8913fb9..6a0d2f3 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -435,4 +435,27 @@ function rst_context.line_block_empty()
return "\n"
end
+function rst_context.block_quote (tab)
+ local str = [[
+\\setupdelimitedtext [blockquote][style={\\setupbodyfont[11pt]}] % awful placeholder
+\\definedelimitedtext[attribution][blockquote]
+\\setupdelimitedtext [attribution][style={\\setupbodyfont[11pt]\\it}]
+
+\\startlinecorrection
+\\startblockquote
+]] .. tab[1] .. [[
+
+\\stopblockquote
+]]
+
+ return tab[2] and str .. [[
+\\startattribution
+]] .. tab[2] .. [[
+\\stopattribution
+\\stoplinecorrection
+]] or str .. [[
+\\stoplinecorrection
+]]
+end
+
return rst_context