A fast and flexible Markdown parser written in Swift.
This new version of Ink is long overdue (very sorry about that!) and includes some great fixes by the community:
Ink now supports Swift 5.4, while still maintaining backward compatibility with 5.3 and 5.2.
Ink now ships with support for Markdown tables - including headers, column alignment, and balancing of cells. Thanks a lot to @christiankm and @john-mueller for their work on this.
Pre-escaped HTML entities (such as &
) are now left as-is, rather than being double-escaped.
Metadata keys and values can now be modified using the .metadataKeys
and .metadataValues
modifier targets, which makes it easier to integrate Ink (and tools written on top of it, like Publish) with existing Markdown metadata.
language-
(by @john-mueller).stdin
input and has better usage info (by @john-mueller).Markdown
value that's returned from MarkdownParser.parse
now has a title
property, which matches the first top-level heading found in the Markdown text.+
(by @ezfe).1)
(by @ezfe).#
) are now trimmed from headings.ink
command line tool now accepts STDIN input by passing -
as a single argument (by @bamx23)This version addresses Linux compatibility issues in the unit testing suite.
Initial release of Ink.