diff options
Diffstat (limited to 'lib/rdoc/markup/parser.rb')
-rw-r--r-- | lib/rdoc/markup/parser.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/rdoc/markup/parser.rb b/lib/rdoc/markup/parser.rb index 3fce2b4c3b..4d0cf1127e 100644 --- a/lib/rdoc/markup/parser.rb +++ b/lib/rdoc/markup/parser.rb @@ -389,7 +389,7 @@ class RDoc::Markup::Parser skip :NEWLINE when :TEXT then unget - parent << build_paragraph(indent) + parse_text parent, indent when *LIST_TOKENS then unget parent << build_list(indent) @@ -406,6 +406,13 @@ class RDoc::Markup::Parser end ## + # Small hook that is overridden by RDoc::TomDoc + + def parse_text parent, indent # :nodoc: + parent << build_paragraph(indent) + end + + ## # Returns the next token on the stream without modifying the stream def peek_token |