{"repo":"loopwerk/Parsley","free":true,"listed":false,"github":"https://github.com/loopwerk/Parsley","clone":"git clone https://github.com/loopwerk/Parsley.git","description":"A Markdown parser for Swift, using Github Flavored Markdown. Supports Metadata and Markdown attributes.","language":"Swift","stars":33,"topics":["swift","swift-package-manager","markdown","markdown-parser","markdown-to-html","github-flavored-markdown"],"license":"MIT","category":"docs-static-sites","readme_excerpt":"A Markdown parser for Swift Package Manager, using Github Flavored Markdown. As such it comes with a bunch of Markdown extensions such as fenced code blocks, tables, strikethrough, hard line breaks and auto links. Additionally Parsley supports embedded metadata in Markdown documents, and it splits the document title out from the document body. Install Parsley is available via Swift Package Manager and runs on macOS and Linux. Use as a reader in Saga Parsley can be used as a reader in the static site generator Saga, using SagaParsleyMarkdownReader. Markdown attributes Parsley supports adding attributes to Markdown elements using curly braces {...} with the following shorthand notations: Notation HTML result ---------- ------------ .myclass class=\"myclass\" #myid id=\"myid\" key=\"value\" key=\"value\" Multiple classes are merged: {.foo .bar} becomes class=\"foo bar\" . Attributes on code blocks are always enabled. For headings, images, and other block-level elements , you need to opt in with the .markdownAttributes option: Code blocks Attributes are placed after the language on the opening fence line: markdown As a shorthand, a title can also be specified without curly braces: markdown This is equivalent to {data-title=\"views.py\"} . You can then use CSS to display the title, for example: Headings Attributes are placed at the end of the heading line: Block elements For paragraphs, blockquotes, lists, horizontal rules, and tables, place the attributes on their own line directly after the","default_branch":null,"files":null,"tree":[],"storefront":"/r/loopwerk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/loopwerk/Parsley/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."}