Commit graph

477 commits

Author SHA1 Message Date
Noah Hellman
0e171c2cf2 html: filter out blanklines, escape
These are not visible, but the blankline breaks the peek for
End(Footnote) to detect whether to append the last paragraph with a
backreference link. A peek will now find the end event instead of an
invisible blankline.
2023-02-05 20:36:40 +01:00
Noah Hellman
8ccfb4c603 render footnotes 2023-02-05 20:36:40 +01:00
Noah Hellman
cbead322ed fixup! tree: add tree branch reference 2023-02-05 20:36:40 +01:00
Noah Hellman
726f1bc7b0 fixup! parser: impl link references 2023-02-05 20:36:40 +01:00
Noah Hellman
56190c4b0d fixup! parser: impl link references 2023-02-05 20:36:40 +01:00
Noah Hellman
ce6447476c fixup! parser: impl link references 2023-02-05 20:36:40 +01:00
Noah Hellman
412067a190 tree: add Branch::branch
will be used to defer inline parsing of footnotes
2023-02-05 20:36:40 +01:00
Noah Hellman
1dde9e57e2 borrow link def url if on single line 2023-02-05 20:36:40 +01:00
Noah Hellman
c7b3aa560b tree: add tree branch reference
allow multiple independent iterators for the same underlying tree

safety: not very good, but should work because original tree is kept in
Parser and branches are only used during its lifetime
2023-02-05 20:36:40 +01:00
Noah Hellman
4a7967812e lex: fix buggy peek 2023-02-05 20:36:40 +01:00
Noah Hellman
6af5c5c884 fixup! parse inline attrs 2023-02-05 20:36:40 +01:00
Noah Hellman
4fad0e9050 fixup! block attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
ecf49100f4 fixup! parser: impl link references 2023-02-05 20:36:40 +01:00
Noah Hellman
6c5fcbf57d parser: impl link references 2023-02-05 20:36:40 +01:00
Noah Hellman
a4511db0a8 html: skip href attr when url empty 2023-02-05 20:36:40 +01:00
Noah Hellman
d3a98e6626 inline: impl empty link references tag
use text as tag
2023-02-05 20:36:40 +01:00
Noah Hellman
8c1d38fe12 tests suite: update tests from new djot impl repo
replace jgm/djot submodule with jgm/djot.js that contains newer tests
2023-02-05 20:36:40 +01:00
Noah Hellman
f80991d07a inline: hide empty attributes from output
allow comments
2023-02-05 20:36:40 +01:00
Noah Hellman
e6eb02ad03 fixup! inline: word attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
064b4b1f88 inline: rename AttributesDummy -> Placeholder
allow general use
2023-02-05 20:36:40 +01:00
Noah Hellman
b512c670e6 attr valid: return whether attrs non-empty 2023-02-05 20:36:40 +01:00
Noah Hellman
161dfec96d inline: word attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
5f9a72545b lib: raw blocks 2023-02-05 20:36:40 +01:00
Noah Hellman
b3896908a3 inline: trim verbatim whitespace 2023-02-05 20:36:40 +01:00
Noah Hellman
6e28b0e162 html: ignore attrs on inline quotes 2023-02-05 20:36:40 +01:00
Noah Hellman
8024499069 html: output attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
eb6b58f2a9 fixup! block attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
b937b4f71e inline: span with attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
6bd30f1a58 fixup! mv spans to separate span file 2023-02-05 20:36:40 +01:00
Noah Hellman
b0565eb4c6 rm unused var 2023-02-05 20:36:40 +01:00
Noah Hellman
0816ab4dcb mv inline span structs to span module 2023-02-05 20:36:40 +01:00
Noah Hellman
59664feaf3 fixup! parse inline attrs 2023-02-05 20:36:40 +01:00
Noah Hellman
8d676e1431 parse inline attrs 2023-02-05 20:36:40 +01:00
Noah Hellman
1586c2947f fixup! block attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
a1bcc4277d fixup! inline: impl container attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
666e9cfd40 fixup! block attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
c0183d4524 inline: impl container attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
73d3e05f0a fixup! wip fix span / typeset precedence 2023-02-05 20:36:40 +01:00
Noah Hellman
9dd10a558f fixup! block attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
653bd59eb5 stuuoestnhunoestuh 2023-02-05 20:36:40 +01:00
Noah Hellman
d8d464902a wip fix span / typeset precedence 2023-02-05 20:36:40 +01:00
Noah Hellman
352be02ccf block attributes 2023-02-05 20:36:40 +01:00
Noah Hellman
be333b8715 stuufff 2023-02-05 20:36:40 +01:00
Noah Hellman
5ac05d1919 img 2023-02-05 20:36:40 +01:00
Noah Hellman
cd54416902 fixup! pre remove atomic state 2023-02-05 20:36:40 +01:00
Noah Hellman
6fdbd09cd1 discontinuous spans 2023-02-05 20:36:40 +01:00
Noah Hellman
903578b04d add cowstr 2023-02-05 20:36:40 +01:00
Noah Hellman
f74ea7a138 span tag / url 2023-02-05 20:36:40 +01:00
Noah Hellman
f6fa422e6b refactorzzz 2023-02-05 20:36:40 +01:00
Noah Hellman
81a4edb884 inline: get rid of verbatim state 2023-02-05 20:36:40 +01:00