Commit Graph
100 Commits
Author SHA1 Message Date
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
Christian Muehlhaeuser 6205d41c86 Update gallery images 2019-12-10 15:47:37 +01:00
Christian Muehlhaeuser 81d39f19bc Handle relative URLs with empty path 2019-12-10 10:49:46 +01:00
Christian Muehlhaeuser cc218713f7 Add extra newline after headings 2019-12-09 13:11:12 +01:00
Christian Muehlhaeuser cbd7714ca8 Fix prefix & suffix not rendering around tables 2019-12-09 13:09:04 +01:00
Christian Muehlhaeuser 00c809072e Render prefix & suffix around chroma code-blocks 2019-12-09 12:59:35 +01:00
Christian Muehlhaeuser c868abeeec Render indent of code_block and heading in current style 2019-12-08 16:47:36 +01:00
Christian Muehlhaeuser bdc418e334 Parent of the first block has an empty style 2019-12-08 16:47:11 +01:00
Christian Muehlhaeuser 15370d018f Add MarginWriter to avoid code repetition 2019-12-08 15:22:21 +01:00
Christian Muehlhaeuser b4c77e8101 Add BlockStack.Len() for convenience 2019-12-08 13:52:22 +01:00
Christian Muehlhaeuser ad5343d395 Fix notty style 2019-12-07 19:50:15 +01:00
Christian Muehlhaeuser 71e84251b3 Calculate block width from BlockStack & RenderContext 2019-12-07 19:49:24 +01:00
Christian Muehlhaeuser 7404a91eb4 Add default styles for horizontal rule element 2019-12-07 18:56:08 +01:00
Christian Muehlhaeuser 897b2dbd1e Decouple render elements from blackfriday parser 2019-12-07 18:48:08 +01:00
Christian Muehlhaeuser 665477d690 Move stateful objects to RenderContext struct 2019-12-07 15:40:42 +01:00
Christian Muehlhaeuser 53c220c9fc A little less tacky color for lists 2019-12-07 11:41:40 +01:00
Christian Muehlhaeuser 58c98f545c Remove superfluous heading prefixes as they already get inherited 2019-12-07 11:35:51 +01:00
Christian Muehlhaeuser a6ea92a2d8 Apply special markup to first-level headings in default dark style 2019-12-07 10:02:52 +01:00
Christian Muehlhaeuser a0cc8eba36 Add template helper functions 2019-12-07 10:02:00 +01:00
Christian Muehlhaeuser a44f992f54 Update example images 2019-12-07 09:31:28 +01:00