diff options
Diffstat (limited to 'rst_context.lua')
-rw-r--r-- | rst_context.lua | 23 |
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 |