Feb 13, 2023 Replies: 2 A Markdown engine 1.Overview Markdown is a great tool for easily making formatted text files that display across a variety of platforms. It’s popular with technical writers and bloggers for its ease of use and relatively short learning curve. Simple, Easy learning and Powerful. The MD2Html engine which I wrapped with ? B4x is based on the commonMark, Two features are extended, one is Emoji Shortcode support, another is tables simple implementation. 2.Features . Emoji Shortcode Emoji shortcodes are which begin and end with a colon and include the name of an emoji. Short CodeEmoji`:heart`:?`:sunny`: You can find all of them from Github. . Tables To add a table, use three or more hyphens (---) to create each column’s header, and use pipes (|) to separate each column. | Syntax | Description | | ----| --- | | Header | Title | | Paragraph | Text | It is rendered as below: SyntaxDescriptionHeaderTitleParagraphText Note: Alignment feature doesn't be supported 3.How to use it It is absolutely simple to use it in B4J server. I have attached the md2html library and an example which adapted from Erel's BBCodeDesigner. A tip: You can declare variables with {{}} in markdown text. Hope you enjoy it! 21/2/2023 Updated md2html.0.11.zip: fixed some bugs Added example and libaray for B4A, Go there Attachments 1.png 264.1 KB · Views: 2,457 2.png 50.7 KB · Views: 677 3.png 105.7 KB · Views: 744 4.png 53.7 KB · Views: 722 MarkDownDesigner.zip MarkDownDesigner.zip 75.8 KB · Views: 549 md2html.0.11.zip md2html.0.11.zip 156.8 KB · Views: 522 Last edited: Feb 22, 2023 Click to expand...
A Markdown engine 1.Overview Markdown is a great tool for easily making formatted text files that display across a variety of platforms. It’s popular with technical writers and bloggers for its ease of use and relatively short learning curve. Simple, Easy learning and Powerful. The MD2Html engine which I wrapped with ? B4x is based on the commonMark, Two features are extended, one is Emoji Shortcode support, another is tables simple implementation. 2.Features . Emoji Shortcode Emoji shortcodes are which begin and end with a colon and include the name of an emoji. Short CodeEmoji`:heart`:?`:sunny`: You can find all of them from Github. . Tables To add a table, use three or more hyphens (---) to create each column’s header, and use pipes (|) to separate each column. | Syntax | Description | | ----| --- | | Header | Title | | Paragraph | Text | It is rendered as below: SyntaxDescriptionHeaderTitleParagraphText Note: Alignment feature doesn't be supported 3.How to use it It is absolutely simple to use it in B4J server. I have attached the md2html library and an example which adapted from Erel's BBCodeDesigner. A tip: You can declare variables with {{}} in markdown text. Hope you enjoy it! 21/2/2023 Updated md2html.0.11.zip: fixed some bugs Added example and libaray for B4A, Go there
William Lancee Well-Known Member Licensed User Longtime User Feb 13, 2023 #2 Very interesting. How about a Markdown to BBCodeView tags?
teddybear Well-Known Member Licensed User Feb 13, 2023 #3 William Lancee said: Very interesting. How about a Markdown to BBCodeView tags? Click to expand... It's not Markdown to BBCodeView tags. it is MD to html, UI adapted from Erel's BBCodeDesigner code.
William Lancee said: Very interesting. How about a Markdown to BBCodeView tags? Click to expand... It's not Markdown to BBCodeView tags. it is MD to html, UI adapted from Erel's BBCodeDesigner code.