{"repo":"objecthub/swift-markdownkit","free":true,"listed":false,"github":"https://github.com/objecthub/swift-markdownkit","clone":"git clone https://github.com/objecthub/swift-markdownkit.git","description":"A framework for parsing and transforming text in Markdown format written in Swift 6 for macOS, iOS, and Linux. The syntax is based on the CommonMark specification. The framework defines an abstract syntax for Markdown, provides a parser for parsing strings into abstract syntax trees, and comes with generators for HTML and attributed strings.","language":"Swift","stars":212,"topics":["markdown","markdown-parser","commonmark","swift","markdown-converter","macos","ios","linux"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Swift MarkdownKit Swift MarkdownKit is a framework for parsing, processing and displaying text in Markdown format. The supported syntax is based on the CommonMark Markdown specification. Swift MarkdownKit also provides an extended version of the parser that is able to handle Markdown tables. Swift MarkdownKit defines an abstract syntax representation for Markdown, it provides a parser for parsing strings into abstract syntax trees, and comes with generators for creating output in plain text, HTML and attributed strings. There is also a generator which can be used to display Markdown documents in ANSI-compliant terminals. Table of contents 1. &nbsp; Parsing Markdown &nbsp;&nbsp; 1.1 &nbsp; Using the framework &nbsp;&nbsp; 1.2 &nbsp; Markdown extensions &nbsp;&nbsp; 1.3 &nbsp; Configuring the parser &nbsp;&nbsp; 1.3 &nbsp; Extending the parser 2. &nbsp; Processing Markdown 3. &nbsp; Converting Markdown into other formats &nbsp;&nbsp; 3.1 &nbsp; Generating text, HTML, and Attributed Strings &nbsp;&nbsp; 3.2 &nbsp; Using the command-line tool 4. &nbsp; Displaying Markdown with SwiftUI 5. &nbsp; Known issues 6. &nbsp; Requirements &nbsp; Parsing Markdown Using the framework Class MarkdownParser provides a simple API for parsing Markdown in a string. The parser returns an abstract syntax tree representing the Markdown structure in the string: Executing this code will result in the follwing data structure of type Block getting printed: Block is a recursively defined enumeration of c","default_branch":null,"files":null,"tree":[],"storefront":"/r/objecthub","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/objecthub/swift-markdownkit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}