Skip to content

Commit

Permalink
[DOXIA-650] Make MarkdownParser to be a text parser with text markup
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o authored and hboutemy committed Dec 29, 2022
1 parent 47a1bb2 commit ceb7729
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@

import org.apache.commons.io.input.CharSequenceReader;
import org.apache.maven.doxia.markup.HtmlMarkup;
import org.apache.maven.doxia.markup.TextMarkup;
import org.apache.maven.doxia.module.xhtml.XhtmlParser;
import org.apache.maven.doxia.parser.AbstractParser;
import org.apache.maven.doxia.parser.AbstractTextParser;
import org.apache.maven.doxia.parser.ParseException;
import org.apache.maven.doxia.parser.Parser;
import org.apache.maven.doxia.sink.Sink;
Expand Down Expand Up @@ -69,7 +70,8 @@
*/
@Component( role = Parser.class, hint = MarkdownParser.ROLE_HINT )
public class MarkdownParser
extends AbstractParser
extends AbstractTextParser
implements TextMarkup
{

/**
Expand Down Expand Up @@ -98,17 +100,6 @@ public class MarkdownParser
"^[ \\t]*([^:\\r\\n]+?)[ \\t]*:[ \\t]*([^\\r\\n]*)[ \\t]*$",
Pattern.MULTILINE );

/**
* <p>getType.</p>
*
* @return a int.
*/
@Override
public int getType()
{
return TXT_TYPE;
}

/**
* The parser of the HTML produced by Flexmark, that we will
* use to convert this HTML to Sink events
Expand Down

0 comments on commit ceb7729

Please sign in to comment.