Tom Alexander
5cd34ba3a2
Create a new context tree when calling into confine_context.
...
The parent exit matchers were causing an issue.
2023-10-09 18:02:36 -04:00
Tom Alexander
13b95cd0a1
Fix handling of text markup at the start/end of regular link descriptions and radio targets.
2023-10-09 18:02:36 -04:00
Tom Alexander
876d042c37
Fix tests.
2023-10-09 15:54:30 -04:00
Tom Alexander
81c0b7079f
Do not include leading slash in citation style.
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has failed
2023-10-09 15:48:43 -04:00
Tom Alexander
4a367dd7e0
Include closing semicolon in citation reference.
2023-10-09 15:45:10 -04:00
Tom Alexander
8a0f9d4540
Fix comparing key and mark prefix/suffix as optional.
2023-10-09 15:41:21 -04:00
Tom Alexander
f6155ecf93
Switch to returning ComparePropertiesResult.
...
This is to support returning lists of child results for properties that contain lists of ast nodes.
2023-10-09 15:33:33 -04:00
Tom Alexander
c077d34933
Populate citation reference properties.
2023-10-09 15:33:33 -04:00
Tom Alexander
1ecc3ecf9d
Fill citation fields.
2023-10-09 15:33:33 -04:00
Tom Alexander
ced35e1694
Merge branch 'footnote_reference_properties'
2023-10-09 15:33:13 -04:00
Tom Alexander
840dc0a750
Support text markup at the start of a regular link description.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-09 14:02:27 -04:00
Tom Alexander
adc5a383c3
Allow text markup at the start of a radio target.
2023-10-09 13:47:36 -04:00
Tom Alexander
5ac12229f4
Fix footnote reference type.
2023-10-09 13:23:08 -04:00
Tom Alexander
9565435526
Compare footnote reference properties.
2023-10-09 13:14:35 -04:00
Tom Alexander
e39562c85d
Roll out the new children functions to all compare functions using the new compare_properties macro.
...
We will roll it out to the rest of them when we move them over to the new compare_properties macro.
2023-10-09 13:08:45 -04:00
Tom Alexander
c49556bd5d
Merge branch 'export_snippet_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has failed
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-09 13:02:07 -04:00
Tom Alexander
84ec2f2023
Introduce functions to compare children and assert there are no children.
2023-10-09 13:01:55 -04:00
Tom Alexander
00ed63dcaa
Compare properties for export snippets.
2023-10-09 13:01:55 -04:00
Tom Alexander
8dde8ce4e1
Merge branch 'latex_fragment_properties'
2023-10-09 13:01:29 -04:00
Tom Alexander
4e551e6d7e
Compare latex fragment properties.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-09 12:30:59 -04:00
Tom Alexander
ea29ad8667
Merge branch 'entity_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-09 10:33:20 -04:00
Tom Alexander
085e728c34
Add an all entities test without escaping braces.
2023-10-09 10:33:07 -04:00
Tom Alexander
99318f39e3
Do not accept escaping {} for entities ending in whitespace.
2023-10-09 10:33:07 -04:00
Tom Alexander
c679a85e77
Fix sorting of entity names.
2023-10-09 10:33:07 -04:00
Tom Alexander
fc17fc224c
Update definitions to the version of entities used in the org-mode in the docker container.
2023-10-09 10:33:07 -04:00
Tom Alexander
7fe7e7a6ea
Add use_brackets.
2023-10-09 10:33:07 -04:00
Tom Alexander
ef591556fe
Populate entity fields.
2023-10-08 18:06:56 -04:00
Tom Alexander
c150aa4dea
Add support for an org-entities global setting.
2023-10-08 18:01:42 -04:00
Tom Alexander
1df6777b0b
Starting to compare entity properties.
2023-10-08 17:24:03 -04:00
Tom Alexander
8a109276df
Merge branch 'macro_properties'
2023-10-08 17:17:51 -04:00
Tom Alexander
f07d041eb9
Fix handling capitalization in macro names.
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded
2023-10-08 16:51:44 -04:00
Tom Alexander
9bdec391f1
Do not capture trailing whitespace on the final macro arg.
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-test Build rust-test has succeeded
2023-10-08 16:39:22 -04:00
Tom Alexander
b9ead09dde
Add test showing we are not handling trailing whitespace in macro args properly.
2023-10-08 16:34:28 -04:00
Tom Alexander
dd009498dd
Switch to using coalesce_whitespace_escaped for macro args.
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
2023-10-08 16:19:25 -04:00
Tom Alexander
17c745ee71
Improve coalesce_whitespace_escaped to borrow when single spaces are used.
2023-10-08 16:15:49 -04:00
Tom Alexander
41aa0349a0
Add tests for coalesce_whitespace_escaped.
2023-10-08 16:06:52 -04:00
Tom Alexander
a6adeee40b
Handle escaping the characters in org macro arguments.
2023-10-08 15:54:56 -04:00
Tom Alexander
a32cea8139
Coalesce whitespace in macro args.
2023-10-08 15:08:21 -04:00
Tom Alexander
37bc5ef712
Do not include whitespace at the end of value.
2023-10-08 14:48:29 -04:00
Tom Alexander
1a2f0856da
Compare macro properties.
2023-10-08 14:40:01 -04:00
Tom Alexander
3f707149e3
Merge branch 'angle_link_properties'
rustfmt Build rustfmt has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
2023-10-08 14:18:25 -04:00
Tom Alexander
e9276e35ca
Add comments.
2023-10-08 14:18:17 -04:00
Tom Alexander
3041a575f9
Fix lifetimes.
2023-10-08 14:13:02 -04:00
Tom Alexander
42dbda494a
Switch to using a similar optimized Cow function for regular link.
2023-10-08 14:11:46 -04:00
Tom Alexander
0e791e67ab
Move the angle link string processing functions to a util file.
...
Since I bothered to do the right thing and implement these as returning Cow so I can avoid unnecessary allocations, I figure I should move them to a util file so they can be re-used.
2023-10-08 13:36:57 -04:00
Tom Alexander
ba55e0df4f
Remove all whitespace from search option if it contains any line breaks and handle triple+ slashes for file links.
2023-10-08 13:23:12 -04:00
Tom Alexander
d987b9b75b
Remove line breaks from path and do not allow search option for protocol links.
2023-10-08 13:02:09 -04:00
Tom Alexander
aa253c38dd
Parse out the angle link properties.
2023-10-08 12:46:18 -04:00
Tom Alexander
ceb5376b21
Fix handling of search option for plain links when parenthesis are involved.
2023-10-08 10:57:05 -04:00
Tom Alexander
b64c1c944b
Allow :: to end links regardless of parenthesis.
2023-10-08 10:57:05 -04:00