Commit graph

52 commits

Author SHA1 Message Date
Christian Muehlhaeuser
de1e31054e Use 'Camera' unicode symbol U+1F4F7 to prefix images in the default dark style 2019-12-05 20:52:14 +01:00
Christian Muehlhaeuser
7eaf4f2766 Update default dark style to use colors from limited ANSI color range 2019-12-05 20:47:12 +01:00
Christian Muehlhaeuser
c89ab1c3cb Update default dark style 2019-12-05 14:09:04 +01:00
Christian Muehlhaeuser
85ef3db384 Added enumeration style to default dark theme 2019-12-05 10:05:59 +01:00
Christian Muehlhaeuser
353b5eab96 Add margin to heading element in default dark style 2019-12-05 09:45:41 +01:00
Christian Muehlhaeuser
8681be79df Add margin to lists in default dark style 2019-12-04 13:43:18 +01:00
Christian Muehlhaeuser
821aa99320 Add foreground color for text in default theme 2019-12-04 07:27:53 +01:00
Christian Muehlhaeuser
df17759c66 Update default dark theme with margins 2019-12-04 06:59:01 +01:00
Christian Muehlhaeuser
852df5e82a Update dark style with a background color for the document 2019-12-04 06:38:30 +01:00
Christian Muehlhaeuser
57b5100c57 Update dark style defaults 2019-12-04 04:55:26 +01:00
Christian Muehlhaeuser
974be22fa0 Make document indentable 2019-11-30 08:07:40 +01:00
Christian Muehlhaeuser
6d3f74d425 Fix background colors not being applied correctly 2019-11-30 07:04:48 +01:00
Christian Muehlhaeuser
4b009b2b8a Support styled indents for block elements 2019-11-30 06:43:13 +01:00
Christian Muehlhaeuser
2a3ea0ed0b Rename style previews 2019-11-28 09:07:08 +01:00
Christian Muehlhaeuser
f1ee1e5c46 Show style parameter in gallery 2019-11-28 09:04:34 +01:00
Christian Muehlhaeuser
915cd7ae9d Add light style and style gallery 2019-11-28 08:35:24 +01:00
Christian Muehlhaeuser
810cdf1a2b Add gallery generation script 2019-11-28 07:11:17 +01:00
Christian Muehlhaeuser
af92548528 Update screenshot for default style 2019-11-28 07:03:44 +01:00
Christian Muehlhaeuser
bb0385f0b3 Move screenshot to styles/ 2019-11-28 07:03:14 +01:00
Christian Muehlhaeuser
6afd336852 Updates to default dark style 2019-11-28 02:31:19 +01:00
Christian Muehlhaeuser
d6c1b7fa73 Render each paragraph individually and reflow text only inside paragraphs 2019-11-28 02:23:29 +01:00
Christian Muehlhaeuser
5fe7e94483 Move listitem styling to style JSON 2019-11-26 22:42:52 +01:00
Christian Muehlhaeuser
1f5aa27934 Embed default dark style into binary 2019-11-26 21:05:37 +01:00
Christian Muehlhaeuser
532fceed22 Calculate baseURL for local files 2019-11-26 00:35:11 +01:00
Christian Muehlhaeuser
8eabf0f403 Handle relative URLs in markdown, when a BaseURL is provided 2019-11-26 00:35:11 +01:00
Christian Muehlhaeuser
5766f35363 Fix word-wrapping in colored output 2019-11-25 10:04:55 +01:00
Christian Muehlhaeuser
9ffa4d5b16 Basic GitLab support 2019-11-25 06:57:44 +01:00
Christian Muehlhaeuser
240eb4f2f8 Word-wrap text at 100 chars per default
The default can be overwritten by the user:

./gold -w 80
2019-11-25 06:44:10 +01:00
Christian Muehlhaeuser
a6d648d863 Let user pick a syntax color theme in Gold's style config 2019-11-25 06:02:50 +01:00
Christian Muehlhaeuser
2bfaa5ece9 Check for supported HTTP/HTTPS protocols explicitly 2019-11-25 05:15:35 +01:00
Christian Muehlhaeuser
e40b04218e Update README 2019-11-25 05:04:17 +01:00
Christian Muehlhaeuser
1baefbbec1 Support github URLs without protocol 2019-11-25 04:55:54 +01:00
Christian Muehlhaeuser
f09d2907bd Use a plain-text renderer when not printing to Terminal 2019-11-25 04:32:24 +01:00
Christian Muehlhaeuser
dca563ea25 Use ElementStyles to determine rendering style
Since BlackFriday's Nodes are limiting us a bit in rendering
flexibility, I've introduced Gold's own ElementStyles (a bit of
code repetition here, but alas).

Nodes can now be divided into multiple fragments, which means we
are able to display the link's URL and text in different styles.

Updated the dark theme to demo the newly gained flexibility.
2019-11-24 23:33:25 +01:00
Toby Padilla
9adff17b70 Move Render and RenderBytes to TermRenderer 2019-11-24 13:35:01 -06:00
Christian Muehlhaeuser
18f3a85900 Add screenshot of dark theme 2019-11-24 05:21:12 +01:00
Christian Muehlhaeuser
14bc95c272 Find README(.md) in current working dir when no arg was supplied 2019-11-24 05:07:14 +01:00
Christian Muehlhaeuser
5c3ad999ea Cleanup/simplify main.go 2019-11-24 02:41:03 +01:00
Christian Muehlhaeuser
47ac9b7afc Add goreleaser config to help automate builds for various platforms
We're currently building the following targets:
- Linux 386/x64/armv6/arm64
- Windows 386/x64
- macOS x64
2019-11-24 02:39:02 +01:00
Christian Muehlhaeuser
08dd80a922 Support fetching markdown from arbitrary HTTP sources 2019-11-24 02:04:12 +01:00
Christian Muehlhaeuser
08b62ec55e Update gold usage in README 2019-11-22 18:48:22 +01:00
Christian Muehlhaeuser
16048357a0 Use cobra to handle command line parameters 2019-11-22 18:47:42 +01:00
Christian Muehlhaeuser
b58f777e91 Support reading from stdin
When you start gold with "-" as an argument it will read directly
from stdin, instead of opening a file.

Example calls:

./gold -s dark.json README.md

or

cat README.md | ./gold -s dark.json
2019-11-22 04:23:02 +01:00
Christian Muehlhaeuser
bbd2e15001 Support fetching READMEs from GitHub
When passing a valid GitHub URL instead of a filename to gold,
it will fetch either README.md or README (in that order) from
GitHub and displays the markdown content.

Example:

./gold -s dark.json https://github.com/muesli/beehive
2019-11-22 03:52:21 +01:00
Toby Padilla
c7686d7131 Update repo org 2019-11-15 12:35:04 -06:00
Toby Padilla
2446b97342 README and LICENSE 2019-11-15 12:27:41 -06:00
Toby Padilla
5d9883623d Remove blackfriday requirement from clients 2019-11-12 16:36:51 -05:00
Toby Padilla
5daf00f920 Fix child element rendering 2019-11-12 15:53:11 -05:00
Toby Padilla
439ee25c7e Remove test md 2019-11-09 16:24:57 -06:00
Toby Padilla
09bb6b3dd1 Much better parsing, README example 2019-11-09 16:12:54 -06:00