mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-20 07:04:17 +02:00
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.
This commit is contained in:
parent
9adff17b70
commit
dca563ea25
1 changed files with 7 additions and 0 deletions
|
|
@ -3,6 +3,13 @@
|
|||
"color": "123",
|
||||
"underline": true
|
||||
},
|
||||
"link_text": {
|
||||
"color": "123",
|
||||
"bold": true
|
||||
},
|
||||
"image": {
|
||||
"color": "8"
|
||||
},
|
||||
"heading": {
|
||||
"bold": true,
|
||||
"color": "3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue