Pettet Industries Ltd, Torquay, UK.
Im pleased to announce the initial release of MarkdownKit - the definitive Markdown parser for Xojo.
MarkdownKit is the only 100% native Xojo Markdown parser that is fully CommonMark compliant. It works on every supported Xojo platform (including iOS) and is fast. Really fast.
What is MarkdownKit?
MarkdownKit is an easy-to-use Xojo module that takes String or Text Markdown as input and outputs HTML as a String or Text. It is fully compliant with the CommonMark 0.29 specification which means that it passes all 649 tests in the test suite.
Why use MarkdownKit?
- 100% native Xojo code. Requires no external plugins
- The only Xojo Markdown parser that works on iOS
- Fast. 3-4x faster than other Xojo Markdown parsers*
- The only CommonMark compliant Markdown parser for Xojo
- Unencrypted source code
- Provides access to the abstract syntax tree (AST) so you can easily create your own renderer. This allows you to easily output the Markdown in a format other than HMTL
As mentioned above, whilst MarkdownKit is very easy to use, it also provides access to the abstract syntax tree (AST) it generates whilst parsing the input Markdown. The AST is a representation of the structure and content of the Markdown document. Once created, it can then be “walked” or traversed by a renderer.
A renderer is a class that implements the MarkdownKit.IRenderer interface. You can create your own if you wish. The default HTML renderer included in the MarkdownKit module is just such as class. I also include a second renderer class called ASTRenderer which will print out the AST (instead of converting it to HTML).
As people have come to expect from my products and projects, MarkdownKit comes with comprehensive documentation and a high quality demo application.
Pricing & Availability
MarkdownKit is sold as an unencrypted Xojo module for £60 GBP (about $75 USD) and comes with full support for issues, bugs or feature requests. Your purchase includes the module, PDF documentation, a demo application and the test suite. Payment is handled securely through Stripe.
Note: The purchase actually includes two MarkdownKit modules. One of the modules is Text based and will run on all platforms. The other is String based and will run on all platforms except iOS (as Xojo’s iOS framework does not yet support the String class). I recommend using the String based module if you don’t need iOS support as it’s faster.
Download a precompiled demo application showcasing what you can achieve with MarkdownKit in your own projects. The demo app is a Markdown editor with a live preview, light/dark CSS styling and syntax highlighting. The demo app’s full source code is included with every purchase of MarkdownKit.
Read more or purchase at: https://garrypettet.com/xojo-addons/markdownkit