From: Jean Privat Date: Sat, 17 Jan 2015 03:55:35 +0000 (+0700) Subject: Merge: nitdoc: does not apply header style to span elements anymore. X-Git-Tag: v0.7.1~23 X-Git-Url: http://nitlanguage.org?hp=47c9c20c6d39ec19211dd2a2f6b64c1afe119e92 Merge: nitdoc: does not apply header style to span elements anymore. Fixes #1108 Pull-Request: #1109 Reviewed-by: Alexis Laferrière Reviewed-by: Jean Privat --- diff --git a/src/doc/doc_down.nit b/src/doc/doc_down.nit index 1c77939..1cdc51a 100644 --- a/src/doc/doc_down.nit +++ b/src/doc/doc_down.nit @@ -143,6 +143,10 @@ private class NitdocDecorator end end +# Decorator for span elements. +# +# Because inline comments can appear as span elements, +# InlineDecorator do not decorate things like paragraphs or headers. private class InlineDecorator super NitdocDecorator @@ -150,6 +154,10 @@ private class InlineDecorator v.emit_in block end + redef fun add_headline(v, block) do + v.emit_in block + end + redef fun add_code(v, block) do # Try to parse code var ast = toolcontext.parse_something(block.block.text.to_s)