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 |
|
Christian Muehlhaeuser
|
5096c6696e
|
Write Element's Entering-output to the correct buffer
|
2019-12-04 13:54:17 +01:00 |
|
Christian Muehlhaeuser
|
512abfe4c0
|
Create BlockElement even if there's no style for it
|
2019-12-04 13:42:40 +01:00 |
|
Christian Muehlhaeuser
|
15d9fd129b
|
Handle Lists as a block element, which supports margins & indents
|
2019-12-04 13:37:14 +01:00 |
|
Christian Muehlhaeuser
|
038f2dd684
|
Handle write buffers & cascading styles in BlockStack
|
2019-12-04 13:36:31 +01:00 |
|
Christian Muehlhaeuser
|
9134cddd48
|
Fix filename baseelement.go
|
2019-12-04 09:51:59 +01:00 |
|
Christian Muehlhaeuser
|
ed7def899e
|
Only remove paragraph indent/margin for list items
|
2019-12-04 09:51:31 +01:00 |
|
Christian Muehlhaeuser
|
550c0bdbd5
|
Don't indent line if all we're outputting is ANSI sequences
|
2019-12-04 08:56:15 +01:00 |
|
Christian Muehlhaeuser
|
f7244397d2
|
Support margins in block elements
|
2019-12-04 06:59:53 +01:00 |
|
Christian Muehlhaeuser
|
419fda75c9
|
Support margin style flag
|
2019-12-04 06:58:28 +01:00 |
|
Christian Muehlhaeuser
|
8bcc61ace1
|
Use IndentFunc to style indents correctly
|
2019-12-04 06:38:55 +01:00 |
|
Christian Muehlhaeuser
|
ca06d9968c
|
Add StyleStack.Parent, returning the current style's parent
|
2019-12-04 06:38:10 +01:00 |
|
Christian Muehlhaeuser
|
9974d6bad9
|
Support handling indents with an IndentFunc
|
2019-12-04 06:37:37 +01:00 |
|
Christian Muehlhaeuser
|
b518696b44
|
Use renderText even without an active style
|
2019-12-04 05:47:57 +01:00 |
|