417 Commits
Author SHA1 Message Date
Christian Muehlhaeuser 82837cc7c1 Soft-wrap errors to indicate at which stage we failed 2019-12-18 23:04:46 +01:00
Christian Muehlhaeuser 7e190d9992 Use an indent_token instead of a block_prefix for Blockquotes 2019-12-18 19:49: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 fb6c5cdab8 Set table separators in default styles 2019-12-16 21:59:00 +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 Rocha 3a081082bc Small joke 2019-12-16 11:02:50 -05:00
Christian Rocha ece6d6de1b A few minor edits to the README (#98) 2019-12-16 12:04:55 +01:00
Christian Muehlhaeuser 5b742594cc Automatically apply custom chroma theme when set in style 2019-12-16 08:37:31 +01:00
Christian Rocha 48a98c9d30 Style updates (#97) 2019-12-16 08:16:29 +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 a16d2a53b1 Update statik content 2019-12-15 05:44:44 +01:00
Christian Muehlhaeuser 93a69290b9 Add simple style, without indents or margins 2019-12-15 05:42:49 +01:00
Christian Muehlhaeuser ea66dfbf35 Render expects a string, so it also returns a string 2019-12-15 05:35:34 +01:00
Christian Muehlhaeuser 63c3acd5f9 Test TermRenderer with testdata/readme.markdown.in 2019-12-15 05:30:45 +01:00
Christian Muehlhaeuser 8a9d1795ff Move expected test results to testdata/ 2019-12-15 05:29:27 +01:00
Christian Muehlhaeuser f428b02686 Add test for TermRenderer 2019-12-15 04:53:45 +01:00
Christian Muehlhaeuser 9b49abe410 Make TermRenderer io.Reader & io.WriteCloser compatible 2019-12-15 04:53:17 +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 52c56467f6 Update chroma settings in dark & light styles 2019-12-15 00:22:53 +01:00
Christian Muehlhaeuser 64af8be306 Support bold, italic & underline chroma styles 2019-12-15 00:22:27 +01:00
Christian Muehlhaeuser cd7acbdbd4 Update dark and light style 2019-12-15 00:08:21 +01:00
Christian Muehlhaeuser ed99f8a844 Move chroma style settings to separate struct 2019-12-15 00:08:11 +01:00
Christian Muehlhaeuser da222f957c Update dark style with chroma settings 2019-12-14 20:53:23 +01:00
Christian Muehlhaeuser aeda17f93a Generate chroma theme from our style settings 2019-12-14 20:52:20 +01:00
Christian Muehlhaeuser dedafedbe8 Update gallery & examples 2019-12-14 01:14:39 +01:00
Christian Muehlhaeuser 10a8b1f3cd Add border around termshot screenshots 2019-12-14 01:14:11 +01:00
Christian Muehlhaeuser 1bfbd599d1 Reuse initialized markdown renderer 2019-12-14 00:44:05 +01:00
Christian Muehlhaeuser 4b65ed22c2 Move ANSIRenderer into a separate package 2019-12-14 00:11:29 +01:00
Christian Muehlhaeuser 3018ad9a32 Forgot a few fenced code blocks 2019-12-13 23:40:58 +01:00
Christian Muehlhaeuser e3e1a076f0 Add syntax language to fenced code blocks 2019-12-13 23:34:42 +01:00
Christian Muehlhaeuser 74126e627e Update example images 2019-12-13 23:12:10 +01:00
Christian Muehlhaeuser 02b1904804 Rename Prefix|Suffix & Styled[Prefix|Suffix] => Block[Prefix|Suffix] & Prefix|Suffix 2019-12-13 23:11:15 +01:00
Christian Muehlhaeuser 46f0b9dbbd Detect mailto links and fix their markup 2019-12-13 22:50:18 +01:00
Christian Muehlhaeuser 6045dadccf Rename CheckedItem to TaskItem 2019-12-13 22:42:16 +01:00
Christian Muehlhaeuser 3c0a9e2991 Don't panic, forward the error to the caller 2019-12-13 22:36:55 +01:00
Christian Muehlhaeuser a75e0a980e Added horizontal rules between items in style docs 2019-12-13 22:10:57 +01:00
Christian Muehlhaeuser 365199d2fb Improved style docs 2019-12-13 21:55:36 +01:00
Christian Muehlhaeuser 5e1dca63ba Update style documentation and examples 2019-12-13 21:15:31 +01:00
Christian Muehlhaeuser 0e77ddf76c Lint/fix READMEs 2019-12-13 20:36:25 +01:00
Christian Muehlhaeuser 8bc396c145 Write styled prefix to current block 2019-12-13 04:04:38 +01:00
Christian Muehlhaeuser dadf4bbc1f Skip paragraphs inside ListItems 2019-12-13 04:03:30 +01:00
Christian Muehlhaeuser bbaf2d2986 Update statik file & screenshots 2019-12-13 03:26:52 +01:00
Christian Muehlhaeuser b51db92b65 Render styled prefix & suffix for primitives 2019-12-13 03:16:50 +01:00
Christian Muehlhaeuser 5b7ca1696b Update default styles 2019-12-13 03:06:54 +01:00
Christian Muehlhaeuser aa7c98e225 Drop redundant DocumentElement 2019-12-13 03:05:55 +01:00