Tom Alexander
533997dbf5
Add a template for latex fragment.
2023-10-31 19:16:13 -04:00
Tom Alexander
8695cf17c5
Copy the value of latex fragments through the pipeline.
2023-10-31 19:14:36 -04:00
Tom Alexander
e2f9938437
Add notes about latex fragments.
...
The places they are currently occurring in my posts are unintentional, so I don't think I will be implementing latex fragments right now, but the notes are worth keeping.
2023-10-31 12:32:20 -04:00
Tom Alexander
ada11816fb
Run cargo fix.
2023-10-29 22:31:29 -04:00
Tom Alexander
ff57242434
Merge branch 'footnote'
2023-10-29 22:29:38 -04:00
Tom Alexander
0da37b25e3
Assign the reference counts.
2023-10-29 22:29:29 -04:00
Tom Alexander
ff03140007
Order the footnotes based on when they start processing rather than when they finish.
...
This has the benefit of making the output order make sense when footnote definitions reference footnote references but I mostly did it to match the behavior of upstream org-mode.
2023-10-29 22:29:29 -04:00
Tom Alexander
0ae492f8d3
Promote waiting footnote definitions.
2023-10-29 22:29:29 -04:00
Tom Alexander
613d49c6ec
Record on-deck footnote definitions.
2023-10-29 22:29:29 -04:00
Tom Alexander
0f7e5eea25
no-op the template for footnote definitions.
2023-10-29 22:29:29 -04:00
Tom Alexander
2e7cfd5637
Only parse footnote definitions if they target a reference that exists.
2023-10-29 22:29:28 -04:00
Tom Alexander
afe62de2b6
Re-enable AstNode.
2023-10-29 22:29:28 -04:00
Tom Alexander
1f3b5262b8
Fix build by making the registry guarded by an ArcMutex.
2023-10-29 22:29:28 -04:00
Tom Alexander
f63620b547
Registry being mutuably borrowed.
2023-10-29 22:29:28 -04:00
Tom Alexander
671159cb82
Does not work even without IntoAstNode.
2023-10-29 22:29:28 -04:00
Tom Alexander
f1e985fb32
Lifetime issue.
2023-10-29 22:29:28 -04:00
Tom Alexander
a966be8122
Remove closures from iselector macro.
2023-10-29 22:29:28 -04:00
Tom Alexander
24b9782146
Avoid closures for the intermediate macro.
2023-10-29 22:29:28 -04:00
Tom Alexander
3d44d20384
Running into borrow issue on intermediate.
2023-10-29 18:46:14 -04:00
Tom Alexander
f98a09bc59
Use macros for creating the intermediate stage.
...
This is to make it easier to change function signatures by consolidating the places where the signatures exist.
2023-10-29 18:46:14 -04:00
Tom Alexander
ba511b7f9e
Add another test for footnote definitions.
2023-10-29 18:46:13 -04:00
Tom Alexander
3720558d93
Render the footnote definitions.
2023-10-29 18:46:13 -04:00
Tom Alexander
b66ec507ef
Create a render ast node type.
2023-10-29 18:46:13 -04:00
Tom Alexander
645ae26701
Remove intermediate lifetime.
2023-10-29 14:53:11 -04:00
Tom Alexander
6109902945
Create an intermediate ast node type.
2023-10-29 14:45:02 -04:00
Tom Alexander
cd27869122
Populate render context for footnote references.
2023-10-29 14:45:02 -04:00
Tom Alexander
795945f0da
Register footnote definitions.
2023-10-29 14:45:02 -04:00
Tom Alexander
cb7c28c1ae
Add intermediate lifetime.
2023-10-29 12:24:49 -04:00
Tom Alexander
52ca300de3
Beginning to hand out footnote ids.
2023-10-29 12:24:49 -04:00
Tom Alexander
06dcd22e69
Switch to split inclusive instead of manually-implemented full lines iterator.
2023-10-29 10:59:33 -04:00
Tom Alexander
f87c453459
Move the full lines iterator to its own file.
2023-10-29 10:55:03 -04:00
Tom Alexander
e42edb3f49
Merge branch 'src_block'
2023-10-29 10:44:42 -04:00
Tom Alexander
6d83828012
Add inline source block.
2023-10-29 10:44:32 -04:00
Tom Alexander
eaea37f448
Add a basic template for source blocks.
2023-10-29 10:41:03 -04:00
Tom Alexander
fb99fd2b39
Get the source code lines.
2023-10-29 10:32:05 -04:00
Tom Alexander
313313ae53
Initial structure for unhighlighted source blocks.
2023-10-29 09:37:27 -04:00
Tom Alexander
d9a3b13780
Use raw_link instead of path for regular links.
2023-10-29 09:31:00 -04:00
Tom Alexander
8d9a50226a
Add a tree-sitter-highlight dependency for source blocks.
2023-10-27 21:17:00 -04:00
Tom Alexander
f164838953
Add a space after objects.
2023-10-27 20:54:24 -04:00
Tom Alexander
fe3f2642fe
Add a marker to make incomplete templates more obvious in the rendered html.
2023-10-27 20:51:27 -04:00
Tom Alexander
3d89492518
Add regular link.
2023-10-27 20:43:57 -04:00
Tom Alexander
793789bdf2
Add entity.
2023-10-27 20:27:50 -04:00
Tom Alexander
dbea9318e9
Merge branch 'plain_list'
2023-10-27 20:21:30 -04:00
Tom Alexander
4adaeb0341
Add line break.
2023-10-27 20:21:21 -04:00
Tom Alexander
bfc9e3ed80
Add plain list items.
2023-10-27 20:18:19 -04:00
Tom Alexander
62ffc76376
Add basic templates for plain list.
2023-10-27 20:12:56 -04:00
Tom Alexander
5bbb12327b
Add template for quote blocks.
2023-10-27 19:53:18 -04:00
Tom Alexander
f6c475c80c
Add templates for text markup.
2023-10-27 19:42:33 -04:00
Tom Alexander
4c3bea06d1
Add templates for target, keyword, comment block and comment.
2023-10-27 19:30:16 -04:00
Tom Alexander
0e9d74b2c8
Merge branch 'element_template'
2023-10-27 19:26:38 -04:00