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 |
|
Christian Muehlhaeuser
|
a79ec1ad7a
|
Update gallery images and generator script
|
2019-12-07 09:30:57 +01:00 |
|
Christian Muehlhaeuser
|
37a171cc8e
|
Simplify TermRender init
|
2019-12-07 09:28:29 +01:00 |
|
Christian Muehlhaeuser
|
3b95e8876e
|
Use format strings in default dark style
|
2019-12-07 09:27:56 +01:00 |
|
Christian Muehlhaeuser
|
7ef8fa55d1
|
Render prefix & suffix in the current block's style
|
2019-12-07 09:27:31 +01:00 |
|
Christian Muehlhaeuser
|
72978312ce
|
Support format strings in style elements
|
2019-12-07 09:27:12 +01:00 |
|
Christian Muehlhaeuser
|
fd138a00bd
|
Add line break before example images
|
2019-12-07 08:52:33 +01:00 |
|
Christian Muehlhaeuser
|
c9247397ec
|
Add markdown & style reference examples and generator
|
2019-12-07 08:51:17 +01:00 |
|
Christian Muehlhaeuser
|
9d63f7125d
|
Add markdown examples to style reference
|
2019-12-07 08:11:08 +01:00 |
|
Christian Muehlhaeuser
|
9205d5564d
|
Further updates to the style reference
|
2019-12-07 07:55:54 +01:00 |
|
Christian Muehlhaeuser
|
f2201cad0a
|
Improved readability of style reference
|
2019-12-07 06:10:26 +01:00 |
|
Christian Muehlhaeuser
|
35500510aa
|
Documented more style elements
|
2019-12-07 06:08:16 +01:00 |
|
Christian Muehlhaeuser
|
dbebdf40b1
|
Fix typo in style README
|
2019-12-07 05:46:25 +01:00 |
|
Christian Muehlhaeuser
|
8ba9005b0c
|
Started documenting elements & their style attributes
|
2019-12-07 05:45:45 +01:00 |
|
Christian Muehlhaeuser
|
bb6beac736
|
Move gallery and images to styles/gallery/
|
2019-12-07 05:08:51 +01:00 |
|
Christian Muehlhaeuser
|
8f6a4cebb3
|
Margin changes in dark style
|
2019-12-07 05:06:41 +01:00 |
|
Christian Muehlhaeuser
|
c8a61e56fb
|
Fix gallery generator script
|
2019-12-06 19:35:40 +01:00 |
|
Christian Muehlhaeuser
|
5209f28a71
|
Add NoTTY style to gallery
|
2019-12-06 19:35:22 +01:00 |
|
Christian Muehlhaeuser
|
bb22f8ba20
|
Use indents instead of margins in notty style
|
2019-12-06 19:18:29 +01:00 |
|
Christian Muehlhaeuser
|
e45cc82a64
|
Add notty style
|
2019-12-06 19:12:49 +01:00 |
|
Christian Muehlhaeuser
|
6fe32ed145
|
Embed styles in gold library
|
2019-12-06 01:34:27 +01:00 |
|
Christian Muehlhaeuser
|
6f31dbf5ec
|
Go mod tidy
|
2019-12-06 00:55:20 +01:00 |
|
Christian Muehlhaeuser
|
239b3ec93c
|
Inherit prefix and suffix from parent style on demand
|
2019-12-06 00:24:31 +01:00 |
|
Christian Muehlhaeuser
|
b62a54035e
|
Don't apply hardcoded markup for heading elements
|
2019-12-06 00:24:06 +01:00 |
|
Christian Muehlhaeuser
|
8cbb296ffb
|
Fix reflowing nested lists
|
2019-12-05 22:28:34 +01:00 |
|
Christian Muehlhaeuser
|
08ffc82515
|
Reflow text in paragraph, strip line-breaks and utilize the available width
|
2019-12-05 22:03:35 +01:00 |
|
Christian Muehlhaeuser
|
7eec968514
|
Construct one combined true-color ANSI sequence for foreground and background colors
|
2019-12-05 20:46:05 +01:00 |
|
Christian Muehlhaeuser
|
78e36a02d0
|
Use ElementStyle as a value instead of pointer, so we can drop all the annoying nil checks
|
2019-12-05 18:05:29 +01:00 |
|
Christian Muehlhaeuser
|
556c490ac4
|
Fix nil pointer access when style is unused
|
2019-12-05 17:52:22 +01:00 |
|
Christian Muehlhaeuser
|
e608d2e25e
|
Omit link's text if it's equal to the URL it's pointing to
|
2019-12-05 17:45:38 +01:00 |
|
Christian Muehlhaeuser
|
c4b02ad80d
|
Cascade other style options to children when requested
|
2019-12-05 14:07:10 +01:00 |
|
Christian Muehlhaeuser
|
eaed263d06
|
Cascade Heading style into new H1, H2, ..., H6 styles
|
2019-12-05 14:05:35 +01:00 |
|
Christian Muehlhaeuser
|
12d8828d4b
|
Remove spurious Indent style element
|
2019-12-05 13:29:03 +01:00 |
|
Christian Muehlhaeuser
|
924d332de2
|
Support 24bit color space in terminals with support
Currently supported by xterm, Konsole, gnome Terminal, VTE, iTerm2.
|
2019-12-05 12:19:17 +01:00 |
|
Christian Muehlhaeuser
|
cb80cfbb36
|
Use color helper to retrieve correct ANSI color index
|
2019-12-05 11:55:24 +01:00 |
|
Christian Muehlhaeuser
|
39a6da5fe7
|
Support hex color values in style config
While we don't support extended color ranges just yet, this approximates
the hex value to the closest color value in the ANSI 256-color chart.
|
2019-12-05 11:43:56 +01:00 |
|
Christian Muehlhaeuser
|
31ad9136b5
|
Correctly word-wrap and pad unicode characters
|
2019-12-05 10:37:31 +01:00 |
|
Christian Muehlhaeuser
|
82d6db7c7d
|
Add new element style 'enumeration', used for items in ordered lists
|
2019-12-05 10:05:15 +01:00 |
|
Christian Muehlhaeuser
|
1e195cc3de
|
Don't render List's prefix in ListElement, as it later gets replaced by a ParagraphElement
|
2019-12-05 09:50:17 +01:00 |
|
Christian Muehlhaeuser
|
60e71effec
|
HeadingElement now supports indent & margin
|
2019-12-05 09:44:20 +01:00 |
|
Christian Muehlhaeuser
|
4c98804213
|
Move BlockStack into a separate file blockstack.go
|
2019-12-05 08:06:08 +01:00 |
|