Commits

Philipp Gesang  committed 84ecfcd

added blockquote tag handler

  • Participants
  • Parent commits e1a1bf4

Comments (0)

Files changed (1)

File formatters/acceptor_f-mediawiki.lua

   return fmt(subscript_template, content)
 end
 
-local superscript_template = [[\low{%s}]]
+local superscript_template = [[\high{%s}]]
 local html_super = function (content, parms)
   content = process_inline(content, "table")
   return fmt(superscript_template, content)
 end
 
-local handle_tag  = { }
-handle_tag.b      = html_b
-handle_tag.bold   = html_b
-handle_tag.br     = html_br
-handle_tag.code   = html_code
-handle_tag.i      = html_i
-handle_tag.italic = html_i
-handle_tag.math   = html_math
-handle_tag.small  = html_small
-handle_tag.source = html_source
-handle_tag.sub    = html_sub
-handle_tag.super  = html_super
+local blockquote_template = [[
+\startblockquote
+%s
+\stopblockquote
+]]
+
+local html_blockquote = function (content, parms)
+  content = process_inline(content, "table")
+  return fmt(blockquote_template, content)
+end
+
+local handle_tag          = { }
+handle_tag.b              = html_b
+handle_tag.blockquote     = html_blockquote
+handle_tag.bold           = html_b
+handle_tag.br             = html_br
+handle_tag.code           = html_code
+handle_tag.i              = html_i
+handle_tag.italic         = html_i
+handle_tag.math           = html_math
+handle_tag.small          = html_small
+handle_tag.source         = html_source
+handle_tag.sub            = html_sub
+handle_tag.super          = html_super
 
 formatter.inline_html = function (data)
   local result = ""