Tags: dalu93/Ink
Tags
Markdown: Add title property (JohnSundell#28) This change adds a `title` property to the `Markdown` struct, which when accessed is lazily evaluated to compute a plain text version of the first top-level heading (H1) found in the Markdown text. To make this happen, a `PlainTextConvertible` protocol is introduced, which is also made a requirement of `Fragment`. A best effort is made to convert each fragment into a reasonable plain text representation, even if many of them will never be used as the implementation currently stands (for example, lists can’t be placed inside headings). It still felt worth it to do a proper implementation in case we ever make this a public API for some reason. This lets tools built on top of Ink extract a title for the parsed Markdown document without doing additional string parsing.
HTML: Treat comments as self-closing tags (JohnSundell#10) This patch makes Ink parse HTML comments correctly, by treating them as self-closing tags, rather than as opening ones (which would cause all subsequent text to be parsed as plain HTML).
Merge pull request JohnSundell#1 from JohnSundell/linux-ci Linux: Include all test cases