Commit Graph
26 Commits
Author SHA1 Message Date
Christian Muehlhaeuser 33bf4bcc82 Add testdata from reported issues 2019-12-28 05:50:15 +01:00
Christian Muehlhaeuser 52f841271d Don't sanitize text elements 2019-12-28 05:13:38 +01:00
Christian Muehlhaeuser de9bf211ba Drop newline after RawHTML elements 2019-12-28 04:55:53 +01:00
Christian Muehlhaeuser 7349948f7f Fix blockquote rendering 2019-12-28 01:50:18 +01:00
Christian Muehlhaeuser 8405e35ac8 Use textFromChildren to parse the aggregate content of Link nodes 2019-12-28 01:32:59 +01:00
Christian Muehlhaeuser 4c42a50164 Don't treat fragments as valid URLs 2019-12-28 00:57:24 +01:00
Christian Muehlhaeuser 5a1a0f6457 Traverse through parents to detect ignored AST children 2019-12-28 00:38:11 +01:00
Christian Muehlhaeuser 56af24c72d Add documentation for a few more types 2019-12-25 05:40:28 +01:00
Christian Muehlhaeuser 9157a40ab2 Document BlockStack and make linter happ[y/ier]. 2019-12-25 05:26:18 +01:00
Christian Muehlhaeuser a1da1963cb Document public types and methods 2019-12-25 05:19:33 +01:00
Christian Muehlhaeuser 3a479d0c85 Guard against empty/malformed markdown list entries 2019-12-24 02:45:35 +01:00
Christian Muehlhaeuser be2762f3db Let style define the indentation token 2019-12-18 19:47:58 +01:00
Christian Muehlhaeuser 92cf159a89 Fix TableElement not inheriting style from parent 2019-12-17 12:54:10 +01:00
Christian Muehlhaeuser 29ea5f002a Styles can override the table's separators 2019-12-16 21:58:40 +01:00
Christian Muehlhaeuser 300a999be5 Add ansi.StyleWriter, which wrap writer's output into a style 2019-12-16 20:06:18 +01:00
Christian Muehlhaeuser 386525047d Render tables in given style 2019-12-16 20:04:22 +01:00
Christian Muehlhaeuser 5b742594cc Automatically apply custom chroma theme when set in style 2019-12-16 08:37:31 +01:00
Christian Muehlhaeuser 27f86be69a Fix prefixing first paragraph with a newline, when there's no previous sibling node 2019-12-15 05:52:03 +01:00
Christian Muehlhaeuser 8a9d1795ff Move expected test results to testdata/ 2019-12-15 05:29:27 +01:00
Christian Muehlhaeuser 0c6cb858cf Add tests for ANSIRenderer 2019-12-15 04:24:58 +01:00
Christian Muehlhaeuser 850c3affd3 Use upstream indent & padding writers from reflow 2019-12-15 03:42:40 +01:00
Christian Muehlhaeuser b0857fb690 Follow upstream reflow API changes 2019-12-15 03:30:23 +01:00
Christian Muehlhaeuser 64af8be306 Support bold, italic & underline chroma styles 2019-12-15 00:22:27 +01:00
Christian Muehlhaeuser ed99f8a844 Move chroma style settings to separate struct 2019-12-15 00:08:11 +01:00
Christian Muehlhaeuser aeda17f93a Generate chroma theme from our style settings 2019-12-14 20:52:20 +01:00
Christian Muehlhaeuser 4b65ed22c2 Move ANSIRenderer into a separate package 2019-12-14 00:11:29 +01:00