Tom Alexander
|
03faa7257f
|
Move the indent level for plain list's exit matcher to const fn instead of grabbing from the context.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
This made a slight improvement to performance.
|
2023-08-24 20:50:24 -04:00 |
|
fluxcdbot
|
ad3f47864a
|
CI: autofix rust code.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has failed
|
2023-08-24 23:43:41 +00:00 |
|
Tom Alexander
|
cf37bc4111
|
Remove unnecessary context from some util functions.
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
|
2023-08-24 19:29:00 -04:00 |
|
Tom Alexander
|
e84e2b5147
|
Update tests to compile again.
|
2023-08-24 17:15:24 -04:00 |
|
Tom Alexander
|
dab598e5e7
|
Convert all functions to using the wrapped input type.
rust-test Build rust-test has failed
rust-build Build rust-build has failed
|
2023-08-24 16:06:29 -04:00 |
|
Tom Alexander
|
7cf1b2d2b8
|
Disable the failing plain list whitespace ownership test.
rust-build Build rust-build has failed
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
|
2023-08-17 00:03:05 -04:00 |
|
Tom Alexander
|
7fafbfb6bb
|
Do not consume whitespace in the final plain list item.
|
2023-08-16 17:37:19 -04:00 |
|
Tom Alexander
|
56281633f3
|
Support blank link in plain_list_item_end, move exit matcher to end of loop in plain_list, and maybe consume trailing whitespace in plain_list_item.
|
2023-08-16 17:09:06 -04:00 |
|
Tom Alexander
|
7df393f31d
|
Make a new naive implementation of plain_list_item.
Still need to update plain_list_item_end and handle the whitespace ownership issues, but starting from a simplified state will help.
|
2023-08-16 16:05:24 -04:00 |
|
Tom Alexander
|
72d5f8f35c
|
Make a new naive implementation of plain_list.
|
2023-08-16 16:05:24 -04:00 |
|
Tom Alexander
|
e5e5120a10
|
Move telemetry handling to the tracing-specific main function.
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
This is so main_body can exit with an error at any time without missing the shutdown_telemetry function. This does not catch panics.
|
2023-08-16 16:05:24 -04:00 |
|
Tom Alexander
|
cd1b4ba785
|
Make the tracing macros optional.
|
2023-08-10 20:22:34 -04:00 |
|
Tom Alexander
|
0ca6ce504f
|
Simulate trailing whitespace in empty greater blocks just like drawers.
|
2023-04-22 21:45:18 -04:00 |
|
Tom Alexander
|
9861084afe
|
Cleanup.
|
2023-04-22 01:45:38 -04:00 |
|
Tom Alexander
|
7855020927
|
Fix some errors.
|
2023-04-22 01:13:05 -04:00 |
|
Tom Alexander
|
ba74bb58bb
|
Separate out calls to build element parser.
|
2023-04-22 01:08:45 -04:00 |
|
Tom Alexander
|
4ac6d89311
|
Moving towards unifying into a single parameterized element matcher.
This is to give paragraph priority over keyword in parsing so that affiliated keywords for paragraphs will be parsed as such.
|
2023-04-22 00:55:31 -04:00 |
|
Tom Alexander
|
fbdf40fed0
|
Fix failing tests that were relying on the captured trailing whitespace.
|
2023-04-22 00:19:01 -04:00 |
|
Tom Alexander
|
0b989b53a6
|
Fix warnings.
|
2023-04-21 23:55:18 -04:00 |
|
Tom Alexander
|
e97cf6630f
|
Move consuming the trailing whitespace up to the element matchers.
|
2023-04-21 23:54:54 -04:00 |
|
Tom Alexander
|
18323a2b43
|
Solve the rest of the compiler warnings.
|
2023-04-21 18:42:31 -04:00 |
|
Tom Alexander
|
a1724dae52
|
Combine the error types.
|
2023-04-21 18:36:01 -04:00 |
|
Tom Alexander
|
d780981baf
|
Separate out the element parsers.
|
2023-04-21 16:10:56 -04:00 |
|
Tom Alexander
|
45d0ce17c3
|
Do not allow elements to immediately nest inside themselves.
Plain list is omitted because they can nest.
|
2023-04-18 22:10:44 -04:00 |
|
Tom Alexander
|
a2051aca4f
|
Remove ChainBehavior.
|
2023-04-18 20:44:58 -04:00 |
|
Tom Alexander
|
35eff51d1b
|
First implementation moving over to the new exit matcher class system.
|
2023-04-18 20:33:01 -04:00 |
|
Tom Alexander
|
412bdcda28
|
Fix problem with detecting end of plain list item.
The problem is line indented lte does not match because we aren't consuming the whitespace that the plain list would consume.
|
2023-04-14 23:56:55 -04:00 |
|
Tom Alexander
|
be64eb92af
|
Ran into a bigger issue.
|
2023-04-14 20:17:53 -04:00 |
|
Tom Alexander
|
8549a6b0db
|
Fix case where indentation was causing the plain list item matcher to match items it wouldn't use in other parts.
|
2023-04-14 19:56:54 -04:00 |
|
Tom Alexander
|
143ac49777
|
Fix plain list item parser to not consume trailing whitespace on the last element.
|
2023-04-14 19:32:08 -04:00 |
|
Tom Alexander
|
08fed1301e
|
Fix plain list parser to not consume trailing whitespace on the last item.
|
2023-04-14 19:24:05 -04:00 |
|
Tom Alexander
|
665c1d70fb
|
Add a test case demonstrating an issue.
|
2023-04-12 15:24:18 -04:00 |
|
Tom Alexander
|
ba9ef7907f
|
Add a test proving that nested lists are exited by two blank lines.
|
2023-04-12 13:21:31 -04:00 |
|
Tom Alexander
|
f27965001d
|
End plain lists when there are two blank lines.
|
2023-04-12 13:09:44 -04:00 |
|
Tom Alexander
|
1ecdd61fed
|
Do not consume trailing whitespace if the parent exit matcher is matching.
|
2023-04-10 13:13:11 -04:00 |
|
Tom Alexander
|
e5bc4cb14b
|
Footnote definitions are parsing on their own.
|
2023-04-10 11:50:43 -04:00 |
|
Tom Alexander
|
9a0172e1a4
|
Add a context element for tracking whether or not elements should consume their trailing whitespace.
|
2023-04-10 10:36:16 -04:00 |
|
Tom Alexander
|
716f80b0ec
|
Add initial implementation of footnote definition.
|
2023-04-07 17:14:44 -04:00 |
|
Tom Alexander
|
d7f0a02bb8
|
Fix plain list ending with another element.
|
2023-04-03 19:30:17 -04:00 |
|
Tom Alexander
|
9257420c83
|
Add comment defining problem.
|
2023-04-03 19:19:33 -04:00 |
|
Tom Alexander
|
9ad428bb20
|
Standardize on the children name instead of contents.
|
2023-04-03 17:33:01 -04:00 |
|
Tom Alexander
|
c7c922a4df
|
Do not allow plain lists to start with an asterisk with no indent.
|
2023-04-03 16:38:26 -04:00 |
|
Tom Alexander
|
b5b335b9b0
|
Fix handling of whitespace at the end of paragraphs and mandatory whitespace in list items.
|
2023-04-03 16:30:58 -04:00 |
|
Tom Alexander
|
2d1df18544
|
Cleanup.
|
2023-04-03 15:15:16 -04:00 |
|
Tom Alexander
|
2552ba28d1
|
Correctly parsing plain list items.
|
2023-04-03 15:06:12 -04:00 |
|
Tom Alexander
|
2b0e88dc01
|
The current problem is plain_list_item_end is not taking into account depth.
|
2023-03-31 13:08:53 -04:00 |
|
Tom Alexander
|
707eac5bf8
|
Move trailing whitespace parsing to a separate element.
I still need to parse the line break at the end of elements.
|
2023-03-31 11:16:37 -04:00 |
|
Tom Alexander
|
602cf4c374
|
Removing regurgitate calls.
This hacky solution ends up with whitespace getting captured twice so I will need to either use context or a separate parser.
|
2023-03-31 09:54:48 -04:00 |
|
Tom Alexander
|
775e703ade
|
Not sure whats going on.
|
2023-03-27 19:19:51 -04:00 |
|
Tom Alexander
|
9545990b52
|
Regurgitate seems to have made all text a paragraph.
|
2023-03-27 19:12:20 -04:00 |
|