Commit Graph
100 Commits
Author SHA1 Message Date
Christian Muehlhaeuser aebdb7f587 Add test for TermRenderer.Render 2019-12-25 07:54:25 +01:00
Christian Muehlhaeuser 577aa7c03b Add tests for render helpers 2019-12-25 07:44:55 +01:00
Christian Muehlhaeuser d06339de6f Added coveralls badge to README 2019-12-25 07:35:54 +01:00
Christian Muehlhaeuser 81fe46f9a4 Fix typo in README 2019-12-25 05:55:04 +01:00
Christian Muehlhaeuser 4d9e90bd78 Simplify examples 2019-12-25 05:54:26 +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 9805957441 Add godoc comments to public types 2019-12-25 05:04:11 +01:00
Christian Muehlhaeuser c17201aa04 Add example using a custom glamour renderer 2019-12-25 04:53:34 +01:00
Christian Muehlhaeuser 621a573d6f Add helloworld screenshot 2019-12-25 04:44:34 +01:00
Christian Muehlhaeuser ab20d030f5 Fix typo in example 2019-12-25 04:36:45 +01:00
Christian Muehlhaeuser 68cfb987a7 Fix typo in README 2019-12-25 04:36:11 +01:00
Christian Muehlhaeuser 76ca724f16 Update README and add helloworld example 2019-12-25 04:31:25 +01:00
Christian Muehlhaeuser 3a479d0c85 Guard against empty/malformed markdown list entries 2019-12-24 02:45:35 +01:00
Christian Muehlhaeuser a0197165ae Re-generate test results 2019-12-21 04:15:12 +01:00
Christian Muehlhaeuser 4312f1dad2 Add TravisCI config 2019-12-21 04:10:20 +01:00
Christian Muehlhaeuser 3030f8354f Rename gold to glow 2019-12-20 22:55:00 +01:00
Christian Muehlhaeuser f8268e88d0 Rename gold to glamour 2019-12-19 01:06:54 +01:00
Christian Muehlhaeuser 557ffc6b1b Rename package to glamour 2019-12-19 01:00:44 +01:00
Christian Muehlhaeuser da0b6812c8 Update test imports 2019-12-19 00:56:25 +01:00
Christian Muehlhaeuser aa971ebf03 Update Go module definitions and imports 2019-12-19 00:55:00 +01:00
Christian Muehlhaeuser 8ff08f7dd0 Moved cmd/gold to gold repo 2019-12-19 00:43:46 +01:00
Christian Muehlhaeuser 1c6d016307 Update notty and simple styles 2019-12-19 00:07:31 +01:00
Christian Muehlhaeuser f828497b2c Use colored blockquote example 2019-12-18 23:21:40 +01:00
Christian Muehlhaeuser 553b85e2b5 Update notty & simple style 2019-12-18 23:18:59 +01:00
Christian Muehlhaeuser 89e845a068 Update blockquote example 2019-12-18 23:18:34 +01:00
Christian Muehlhaeuser 240aad3ec6 Update gallery images 2019-12-18 23:12:25 +01:00
Christian Muehlhaeuser 347526e9e6 Update example screenshots 2019-12-18 23:11:13 +01:00
Christian Muehlhaeuser a26f6208da Be more specific about where we failed 2019-12-18 23:07:20 +01:00
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 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 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
Christian Muehlhaeuser 35342a2061 Decode style JSON into a typed struct 2019-12-13 03:04:48 +01:00
Christian Muehlhaeuser 219f21c4e7 Compress heading styles 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser ee04de7ba0 Fix notty style 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser e9f41fcae5 Use unicode characters in default styles 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 5675184234 Remove redundant Text member from ItemElement 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 0384d598d2 Support definition lists in default styles 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser e310343e4a Support rendering definition lists 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser cc0738c20a Update styles to support strikethrough 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 0a3ba0ae35 Support strikethrough elements 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 6f20136abc Clean up Go module dependencies 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 75c1852f53 Support styled prefix/suffix in ParagraphElement 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 7c15f8780e Remove header/footer functions from blackfriday 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser ae0d31909d Update styles 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 07f52dd42a Switch to goldmark parser 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser 30ed5cc5ef Move BlockElement into a separate file 2019-12-13 03:00:45 +01:00
Christian Muehlhaeuser f5af32b68a Don't use unkeyed struct fields 2019-12-10 21:31:30 +01:00
Christian Muehlhaeuser f8d081a042 Update notty style 2019-12-10 20:35:46 +01:00
Christian Muehlhaeuser 0c4f259f6a Keep errors lowercase 2019-12-10 18:17:29 +01:00
Christian Muehlhaeuser 544fe9741d Avoid unnecessary converions 2019-12-10 18:14:37 +01:00
Christian Muehlhaeuser 50046dd6b3 Move text sanitizing to RenderContext 2019-12-10 17:32:49 +01:00
Christian Muehlhaeuser 9e615ab474 Remove (now) superfluous NewPlainTermRenderer 2019-12-10 17:19:29 +01:00
Christian Muehlhaeuser fd9a0d6f25 Add godoc comments to public types 2019-12-10 17:18:59 +01:00
Christian Muehlhaeuser 58f00893c7 Use strings.TrimPrefix to simplify code 2019-12-10 15:56:02 +01:00