FYI, This should be all the parsing code.
Now I need to port the testing code an re-implement the rendering in the “Royale” way of doing it… That’s probably all I’m doing this week. I have “real” work to do… 😉 > On Jan 16, 2022, at 11:49 PM, ha...@apache.org wrote: > > The following commit(s) were added to refs/heads/feature/markdown by this > push: > new ea54f6f Filled in rules > ea54f6f is described below > > commit ea54f6fc6d6d598888c4c945af97c2e1619757eb > Author: Harbs <ha...@in-tools.com <mailto:ha...@in-tools.com>> > AuthorDate: Sun Jan 16 23:49:28 2022 +0200 > > Filled in rules > --- > .../org/apache/royale/markdown/BlockParser.as | 80 + > .../org/apache/royale/markdown/BlockState.as | 182 +- > .../org/apache/royale/markdown/BlockToken.as | 55 +- > .../org/apache/royale/markdown/ContentToken.as | 38 +- > .../org/apache/royale/markdown/CoreParser.as | 13 +- > .../royale/org/apache/royale/markdown/CoreState.as | 42 + > .../org/apache/royale/markdown/Environment.as | 5 + > .../royale/org/apache/royale/markdown/IState.as | 8 +- > .../royale/org/apache/royale/markdown/IToken.as | 12 + > .../org/apache/royale/markdown/InlineParser.as | 59 + > .../org/apache/royale/markdown/InlineState.as | 92 +- > .../markdown/{CoreParser.as => LinkToken.as} | 19 +- > .../block/BlockQuote.as => MarkdownOptions.as} | 35 +- > .../org/apache/royale/markdown/MarkdownParser.as | 20 +- > .../royale/org/apache/royale/markdown/TagToken.as | 37 +- > .../royale/markdown/{BlockToken.as => Token.as} | 110 +- > .../helpers/{normalizeReference.as => HRef.as} | 11 +- > .../apache/royale/markdown/helpers/decodeEntity.as | 1769 ++++++++++++++++++++ > .../royale/markdown/helpers/normalizeReference.as | 6 + > .../markdown/helpers/parseLinkDestination.as | 102 ++ > .../royale/markdown/helpers/parseLinkLabel.as | 76 + > .../{normalizeReference.as => parseLinkTitle.as} | 39 +- > .../{normalizeReference.as => unescapeMd.as} | 17 +- > ...normalizeReference.as => wrappedInParagraph.as} | 21 +- > .../apache/royale/markdown/rules/RulesManager.as | 121 +- > .../royale/markdown/rules/block/BlockQuote.as | 148 +- > .../org/apache/royale/markdown/rules/block/Code.as | 42 +- > .../apache/royale/markdown/rules/block/Deflist.as | 254 ++- > .../apache/royale/markdown/rules/block/Fences.as | 102 +- > .../apache/royale/markdown/rules/block/Footnote.as | 75 +- > .../apache/royale/markdown/rules/block/Heading.as | 76 +- > .../org/apache/royale/markdown/rules/block/Hr.as | 52 +- > .../royale/markdown/rules/block/Htmlblock.as | 135 +- > .../apache/royale/markdown/rules/block/Lheading.as | 72 +- > .../org/apache/royale/markdown/rules/block/List.as | 264 ++- > .../royale/markdown/rules/block/Paragraph.as | 77 +- > .../apache/royale/markdown/rules/block/Table.as | 209 ++- > .../org/apache/royale/markdown/rules/core/Abbr.as | 72 +- > .../org/apache/royale/markdown/rules/core/Abbr2.as | 90 +- > .../org/apache/royale/markdown/rules/core/Block.as | 14 +- > .../royale/markdown/rules/core/Footnote_tail.as | 86 +- > .../apache/royale/markdown/rules/core/Inline.as | 19 +- > .../royale/markdown/rules/core/References.as | 105 +- > .../royale/markdown/rules/core/Replacements.as | 72 +- > .../royale/markdown/rules/core/Smartquotes.as | 141 +- > .../royale/markdown/rules/inline/Autolink.as | 100 +- > .../royale/markdown/rules/inline/Backticks.as | 57 +- > .../org/apache/royale/markdown/rules/inline/Del.as | 92 +- > .../royale/markdown/rules/inline/Emphasis.as | 166 +- > .../apache/royale/markdown/rules/inline/Entity.as | 77 +- > .../apache/royale/markdown/rules/inline/Escape.as | 58 +- > .../royale/markdown/rules/inline/FootnoteRef.as | 62 +- > .../apache/royale/markdown/rules/inline/Htmltag.as | 143 +- > .../royale/markdown/rules/inline/InlineFootnote.as | 59 +- > .../org/apache/royale/markdown/rules/inline/Ins.as | 95 +- > .../apache/royale/markdown/rules/inline/Links.as | 187 ++- > .../apache/royale/markdown/rules/inline/Mark.as | 92 +- > .../apache/royale/markdown/rules/inline/Newline.as | 66 +- > .../org/apache/royale/markdown/rules/inline/Sub.as | 65 +- > .../org/apache/royale/markdown/rules/inline/Sup.as | 60 +- > .../apache/royale/markdown/rules/inline/Text.as | 58 +- > 61 files changed, 6169 insertions(+), 342 deletions(-)