Christian Muehlhaeuser
|
8bc396c145
|
Write styled prefix to current block
|
2019-12-13 04:04:38 +01:00 |
|
Christian Muehlhaeuser
|
35342a2061
|
Decode style JSON into a typed struct
|
2019-12-13 03:04:48 +01:00 |
|
Christian Muehlhaeuser
|
75c1852f53
|
Support styled prefix/suffix in ParagraphElement
|
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
|
15370d018f
|
Add MarginWriter to avoid code repetition
|
2019-12-08 15:22:21 +01:00 |
|
Christian Muehlhaeuser
|
71e84251b3
|
Calculate block width from BlockStack & RenderContext
|
2019-12-07 19:49:24 +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
|
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
|
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
|
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
|
038f2dd684
|
Handle write buffers & cascading styles in BlockStack
|
2019-12-04 13:36:31 +01:00 |
|
Christian Muehlhaeuser
|
ed7def899e
|
Only remove paragraph indent/margin for list items
|
2019-12-04 09:51:31 +01:00 |
|
Christian Muehlhaeuser
|
f7244397d2
|
Support margins in block elements
|
2019-12-04 06:59:53 +01:00 |
|
Christian Muehlhaeuser
|
8bcc61ace1
|
Use IndentFunc to style indents correctly
|
2019-12-04 06:38:55 +01:00 |
|
Christian Muehlhaeuser
|
b518696b44
|
Use renderText even without an active style
|
2019-12-04 05:47:57 +01:00 |
|
Christian Muehlhaeuser
|
afd83210ea
|
Simplify code
|
2019-12-04 05:38:54 +01:00 |
|
Christian Muehlhaeuser
|
92e1c2dde8
|
Use PaddingWriter to render paragraphs
|
2019-12-04 05:21:37 +01:00 |
|
Christian Muehlhaeuser
|
324339551c
|
Remove indent for list-item paragraphs
|
2019-12-02 16:01:43 +01:00 |
|
Christian Muehlhaeuser
|
d0b616b12b
|
Children in a Document or Paragraph element inherit their parent's color styles
|
2019-12-02 15:23:45 +01:00 |
|
Christian Muehlhaeuser
|
bbd7dfecce
|
Initialize paragraph buffer in ParagraphElement
|
2019-12-02 15:22:30 +01:00 |
|
Christian Muehlhaeuser
|
d6d52829bb
|
Make document indentable
|
2019-11-30 08:07:40 +01:00 |
|
Christian Muehlhaeuser
|
d37d023d5d
|
Support styled indents for block elements
|
2019-11-30 06:43:13 +01:00 |
|
Christian Muehlhaeuser
|
8f083a1043
|
Clean up pre/post ambiguity
|
2019-11-26 03:55:43 +01:00 |
|
Christian Muehlhaeuser
|
24a6306e1a
|
Use a Renderer interface instead of rendering fragments
|
2019-11-26 03:24:56 +01:00 |
|