Commit Graph
100 Commits
Author SHA1 Message Date
Christian Muehlhaeuser d5fa904e4a Add golangci config 2020-08-24 15:46:02 +02:00
Christian Muehlhaeuser 28b4a5ca52 Bump goldmark & termenv dependencies 2020-07-22 22:15:13 +02:00
Christian Muehlhaeuser a605339c8b Fix Go ReportCard badge 2020-05-27 17:09:21 +02:00
Christian Muehlhaeuser fe80668412 Bump chroma and termenv deps 2020-05-14 05:41:11 +02:00
Christian Muehlhaeuser 17674398a1 Format README example 2020-05-14 05:40:07 +02:00
Christian Muehlhaeuser ef67a1df88 Fix goreportcard link 2020-05-05 07:51:44 +02:00
Christian Muehlhaeuser 76620b8eef Bump goldmark dependency to v1.1.30 2020-04-29 02:23:10 +02:00
Christian Muehlhaeuser 2b6ee7b188 Bump termenv dependency to v0.5.1 2020-04-29 02:22:03 +02:00
Christian Muehlhaeuser 0b1bc73b94 Link to gallery and styles documentation 2020-04-08 10:12:01 +02:00
Christian Muehlhaeuser 9fa06f7731 Document WithAutoStyle option in README 2020-04-08 10:11:44 +02:00
Christian Muehlhaeuser e6a28b4fba Support 'auto' style to make it accessible by the Render(Bytes) helper function 2020-04-08 10:08:03 +02:00
Christian Muehlhaeuser ba2d2a0ec5 Bump goldmark dependency to v1.1.26 2020-03-31 06:50:07 +02:00
Christian Muehlhaeuser 70c1afdb98 Bump termenv dependency to v0.5.0 2020-03-31 06:49:25 +02:00
Christian Muehlhaeuser 301d3bcf30 Don't determine auto style on init
The automatic style configuration will now only be determined, when
initialized with the WithAutoStyle renderer option.
2020-03-20 18:39:16 +01:00
Christian Muehlhaeuser af31f7f38e Link to pkg.go.dev instead of godoc.org 2020-03-04 17:41:16 +01:00
Christian Muehlhaeuser a1e15da498 Test against Go 1.14 2020-03-04 17:41:00 +01:00
Christian Muehlhaeuser 7e5c90143a Bump chroma dependency to v0.7.2-master 2020-03-04 14:42:24 +01:00
Christian Muehlhaeuser 12cd5dabcb Bump goldmark dependency to v1.1.24 2020-03-01 11:29:28 +01:00
Christian Muehlhaeuser 9474015b79 Don't use chroma for Ascii profiles 2020-02-28 07:17:43 +01:00
Christian Muehlhaeuser 725b8947c6 Update README 2020-02-28 07:16:45 +01:00
Christian Muehlhaeuser 54a8a37b64 Bump reflow dependency to v0.1.0 2020-02-28 07:16:34 +01:00
Christian Muehlhaeuser 8d4e3f0692 Use TrueColor color profile as default
Users can override the desired profile by calling WithColorProfile.
2020-02-10 14:28:08 +01:00
Christian Muehlhaeuser a2997cbe4a Set COLORFGBG env for GitHub workflows 2020-02-10 13:44:01 +01:00
Christian Muehlhaeuser 96e48d9d5b Reuse reflow's writer-pipes 2020-02-10 13:36:02 +01:00
Christian Muehlhaeuser 66b7555d75 Keep termenv profile in RenderContext 2020-01-31 14:47:00 +01:00
Christian Muehlhaeuser 7467d9e1a5 Bump termenv dependency to v0.4.0 2020-01-31 13:06:49 +01:00
Christian Muehlhaeuser b8b84c42da Bump goldmark dependency 2020-01-27 08:23:43 +01:00
Christian Muehlhaeuser 83d2d655c9 Bump termenv dependency to v0.2.0 2020-01-23 19:39:09 +01:00
Christian Muehlhaeuser 28cbdae8e7 Enforce colored rendering during GitHub workflow 2020-01-14 02:09:31 +01:00
Christian Muehlhaeuser ac879be81a Added 'auto' style config
AutoStyleConfig points to either DarkStyleConfig or LightStyleConfig
depending on the current terminal's background color.
2020-01-14 02:01:22 +01:00
Christian Muehlhaeuser 47d1299f6d Bump termenv dependency 2020-01-13 05:08:19 +01:00
Christian Muehlhaeuser 743ecf40c5 Switch ANSI rendering to termenv to automatically convert colors between color-profiles 2020-01-13 04:40:43 +01:00
Christian Muehlhaeuser fc34f721fb Add release badge to README 2020-01-09 15:56:54 +01:00
Christian Muehlhaeuser 6e19bd5b48 Remove now obsolete simple style 2020-01-06 08:31:51 +01:00
Christian Muehlhaeuser 40817a7a74 Switch from TravisCI to GitHub Actions (#49) 2019-12-31 13:09:07 +01:00
Christian Muehlhaeuser 03172b8121 Bump goldmark dependency to v1.1.19 2019-12-31 06:17:34 +01:00
Christian Muehlhaeuser 586164338d Add fuzzing tests 2019-12-31 06:06:26 +01:00
Christian Muehlhaeuser 3bd1742b48 Prevent irregular markdown from acccessing nil TableWriter 2019-12-30 07:04:13 +01:00
Christian Muehlhaeuser bf9cf1e06f Don't abort when encountering invalid URLs 2019-12-30 06:52:33 +01:00
Christian Muehlhaeuser 2023fdc9f6 Fix heading example screenshot 2019-12-28 07:51:58 +01:00
Christian Muehlhaeuser 6feb55b98c Fix cascading style attributes from BlockElements 2019-12-28 07:44:29 +01:00
Christian Muehlhaeuser d3bde07b2f Add tests and documentation for strikethrough element 2019-12-28 06:07:17 +01:00
Christian Muehlhaeuser 84795ad72f Fix json tag for strikethrough text 2019-12-28 06:06:21 +01:00
Christian Muehlhaeuser 33bf4bcc82 Add testdata from reported issues 2019-12-28 05:50:15 +01:00
Christian Muehlhaeuser 1d45bba66d Fix typo in README example 2019-12-28 05:31:43 +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 701031c609 Drop obsolete import statement in README example 2019-12-28 03:02:33 +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 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