Commit Graph

60 Commits (13b95cd0a13a6d01b8fed8786284d2d2d2276dc3)

Author SHA1 Message Date
Tom Alexander 13b95cd0a1
Fix handling of text markup at the start/end of regular link descriptions and radio targets. 8 months ago
Tom Alexander 6bd8d9efd7
Cleanup. 8 months ago
Tom Alexander da2d7535e8
Add synonyms for name. 8 months ago
Tom Alexander 1351577c5a
Fix handling affiliated keywords before invalid paragraphs. 8 months ago
Tom Alexander b82d4c0eca
Fix finding name keyword in affiliated keywords list. 8 months ago
Tom Alexander 5b308ea76f
Implement a function to read the name from the affiliated keywords. 8 months ago
Tom Alexander c1de001786
Require a space after colon instead of tab for fixed width area. 9 months ago
Tom Alexander d443dbd468
Introduce the tab_width setting and give tabs a greater value when counting indentation level. 9 months ago
Tom Alexander c9ce32c881
Remve redundant org_spaces functions.
Turns out the nom space0/space1 parsers accept tab characters already.
9 months ago
Tom Alexander 44e9f708c9
Handle the possibility of a title-less headline. 9 months ago
Tom Alexander 84953c1669
Put back in needed pubs. 9 months ago
Tom Alexander 7650a9edff
Remove all pub. 9 months ago
Tom Alexander 21c60d1036
Do not consume trailing whitespace on the footnote definition's final element. 9 months ago
Tom Alexander a8fbf01124
Handle tabs for plain list descriptions.
This bug probably exists in hundreds of places across the code base. I am going to have to write a "fuzzer" that replaces random whitespace with tabs to find them all.
9 months ago
Tom Alexander ceb722e476
Check exit matcher after each space consumed for object trailing whitespace.
Since description list tags need to end with a space unconsumed for " ::", we need to check the exit matcher after each space consumed.
9 months ago
Tom Alexander b0930df788
Support zero skipped text in OrgSource slicing. 9 months ago
Tom Alexander ba291c6776
Unify two places checking if text was preceded by whitespace. 9 months ago
Tom Alexander 6b82b46e09
Prevent nesting of text markup of the same type.
This greatly reduces the amount of detect element calls that are occurring.
9 months ago
Tom Alexander 3fc3a5d1ef
Add support for empty lesser blocks. 9 months ago
Tom Alexander 728a79f9a4
Handle zero-width space in text markup.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
9 months ago
Tom Alexander df79cbd0b7
Give global options their own lifetime. 9 months ago
Tom Alexander b54c6d366c
Fixing more errors. 9 months ago
Tom Alexander 74a6101de7
Update RefContext to three lifetimes. 9 months ago
Tom Alexander 0d728510d7
Implement iterator for context. 9 months ago
Tom Alexander 564104f1e8
Switch to RefContext. 9 months ago
Tom Alexander eabffe5ecc
Move over the rest of the types. 9 months ago
Tom Alexander 466716881e
Fix macros consuming whitespace even when the exit matcher is calling for an exit.
rustfmt Build rustfmt has succeeded Details
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
9 months ago
Tom Alexander f21385a901
Add a helper function for logging during debugging.
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
9 months ago
Tom Alexander cf37bc4111
Remove unnecessary context from some util functions.
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
9 months ago
Tom Alexander e5224cda63
Removing dead code.
rust-test Build rust-test has succeeded Details
rust-build Build rust-build has succeeded Details
9 months ago
Tom Alexander 64e3481660
Update get_consumed to use the new wrapped input type. 9 months ago
Tom Alexander e84e2b5147
Update tests to compile again. 9 months ago
Tom Alexander 720afa5d32
Update getting the previous character and previous line.
This can be done a lot more efficiently now that we are keeping track of this information in the wrapped input type instead of having to fetch to the original document out of the context tree.
9 months ago
Tom Alexander dab598e5e7
Convert all functions to using the wrapped input type.
rust-test Build rust-test has failed Details
rust-build Build rust-build has failed Details
9 months ago
Tom Alexander 6d1675fa00
Lifetime issue. 9 months ago
Tom Alexander cd1b4ba785
Make the tracing macros optional. 10 months ago
Tom Alexander 5c1d913c99
Check that the preceding line for a line break is non-empty. 11 months ago
Tom Alexander ec889bc868
Clean up old unused code. 1 year ago
Tom Alexander a5585eb01f
Add a not yet implemented function.
This helps when creating new parsers since todo!()s will panic the whole parser.
1 year ago
Tom Alexander 9968aedd74
Make sure text markup doesn't have interior spaces. 1 year ago
Tom Alexander f964481544
Switch to using plain text with no additional exit matcher added. 1 year ago
Tom Alexander 0ca6ce504f
Simulate trailing whitespace in empty greater blocks just like drawers. 1 year ago
Tom Alexander a1724dae52
Combine the error types. 1 year ago
Tom Alexander 04dfffc000
Cleaning up compiler warnings. 1 year ago
Tom Alexander 1ecdd61fed
Do not consume trailing whitespace if the parent exit matcher is matching. 1 year ago
Tom Alexander e5bc4cb14b
Footnote definitions are parsing on their own. 1 year ago
Tom Alexander 716f80b0ec
Add initial implementation of footnote definition. 1 year ago
Tom Alexander 707eac5bf8
Move trailing whitespace parsing to a separate element.
I still need to parse the line break at the end of elements.
1 year ago
Tom Alexander 775e703ade
Not sure whats going on. 1 year ago
Tom Alexander 9545990b52
Regurgitate seems to have made all text a paragraph. 1 year ago