Commit Graph

111 Commits

Author SHA1 Message Date
Sergio Martínez Portela
4ca78716bd Add PyTest Gitea action.
Some checks failed
Pytest / pytest (push) Failing after 9s
2023-10-15 23:21:41 +02:00
Sergio Martínez Portela
343d864559 Fix handling of headline title-tags separated by tabs. 2023-10-15 16:39:00 +02:00
Sergio Martínez Portela
5ed34df57a Make typed functions pass mypy check. 2023-10-15 16:34:33 +02:00
Sergio Martínez Portela
99e44fd8b2 Merge branch 'dev/render-as-dom' into develop 2023-10-07 13:14:51 +02:00
Sergio Martínez Portela
2749a5caad Implement Headline.add_tag()/.create_headline_at_end(). 2023-10-07 13:14:13 +02:00
Sergio Martínez Portela
f11ecd05d6 Fix: find links in list tags. 2023-07-30 23:16:04 +02:00
Sergio Martínez Portela
cebe979066 Fix typo on lists test file. 2023-05-01 20:40:15 +02:00
Sergio Martínez Portela
36a0a00113 Fix nested lists DOM generation and add tests. 2023-05-01 20:40:02 +02:00
Sergio Martínez Portela
790ef57598 Add extra check for TimeRange validity. 2023-04-23 20:50:06 +02:00
Sergio Martínez Portela
302689a622 Fix dom generated of table nested into list. 2023-04-23 20:50:06 +02:00
Sergio Martínez Portela
7008124509 Use more robust list de-indentation handler. 2023-04-13 23:56:58 +02:00
Sergio Martínez Portela
d67bae645b Fix string representation of PropertyNode. 2023-01-04 00:36:20 +01:00
Sergio Martínez Portela
8832cd0b3d Fix extraction of block element contents.
Don't confound normal characters with formatting markers. Handle escaping of
    otherwise headline starters with a comma.
2022-11-17 00:20:20 +01:00
Sergio Martínez Portela
66d061dfda Expose #+BEGIN_ block arguments. 2022-11-15 21:11:05 +01:00
Sergio Martínez Portela
b819904457 Fix handling of block elements after multiline list items. 2022-11-12 18:01:19 +01:00
Sergio Martínez Portela
6c6c375572 WIP: Add support for multiline list items.
Right now this messes with line numbers.
2022-11-12 12:40:57 +01:00
Sergio Martínez Portela
28ddd3e44f Support get_raw_contents of list groups. 2022-11-04 00:14:41 +01:00
Sergio Martínez Portela
ccebe90ea8 Fix as_dom of Text found in a result after a list. 2022-11-04 00:14:41 +01:00
Sergio Martínez Portela
bf10c51e61 Indent list-group inside current node if part of a block. 2022-11-04 00:14:41 +01:00
Sergio Martínez Portela
440f0bd4b7 Properly fix parsing of lists inside drawers. 2022-11-01 19:58:17 +01:00
Sergio Martínez Portela
fc9ce664ae Unify drawer node classes under a common parent. 2022-11-01 19:58:03 +01:00
Sergio Martínez Portela
d1d5de89b7 Revert "Fix parsing of lists inside drawers."
This reverts commit 5e4a9f8ff2.

The tree should not be modified, as it's the returned value. We need an
     additional tree for parent-child element connections.
2022-11-01 19:14:14 +01:00
Sergio Martínez Portela
5e4a9f8ff2 Fix parsing of lists inside drawers. 2022-10-31 21:50:18 +01:00
Sergio Martínez Portela
2748f6400b Make token_list_to_plaintext skip link's URL. 2022-10-21 20:14:57 +02:00
Sergio Martínez Portela
7beec0be05 Fix link building on text_to_dom. 2022-09-29 23:24:20 +02:00
Sergio Martínez Portela
3dc6213abb Handle list items where the tag is composed only by the checkbox. 2022-09-29 20:32:26 +02:00
Sergio Martínez Portela
d69bf97163 Require whitespace after list bullet. 2022-09-29 20:25:48 +02:00
Sergio Martínez Portela
28d8b69146 Export table on as_dom. 2022-09-27 23:55:07 +02:00
Sergio Martínez Portela
c2968283f3 feat: Add base support for tables. 2022-09-27 23:36:32 +02:00
Sergio Martínez Portela
7b7c186b83 feat: Handle greater blocks different from SRC ones. 2022-08-28 21:23:44 +02:00
Sergio Martínez Portela
0e90abbb63 feat: Support markup inside headline titles. 2022-08-28 14:08:54 +02:00
Sergio Martínez Portela
baaa7cbb86 Return None when asked to text_to_dom None.
This should desambiguate the base data semantics.
2022-08-27 13:06:08 +02:00
Sergio Martínez Portela
f3ca823b0c Merge branch 'fix/confusing-links' into develop 2022-08-27 13:03:52 +02:00
Sergio Martínez Portela
efadb7814a Fix handling of links with [] characters around them. 2022-08-27 13:02:10 +02:00
Sergio Martínez Portela
bd4e4f8cb4 Add (failing) tests for confusing links (close to []). 2022-08-27 13:02:01 +02:00
Sergio Martínez Portela
121ad46680 Support text markup on list tags. 2022-08-26 19:04:50 +02:00
Sergio Martínez Portela
2b2af7004a Fix closing links when converting tokens to DOM. 2022-08-20 15:22:16 +02:00
Sergio Martínez Portela
79fd20a472 Add link test with more trailing text. 2022-08-20 15:07:19 +02:00
Sergio Martínez Portela
434fb8ab0e Support non-recursive dump_headline. 2022-06-19 21:46:39 +02:00
Sergio Martínez Portela
eb3c789fad Raise caution errors as NonReproducibleDocument. 2022-06-19 21:46:14 +02:00
Sergio Martínez Portela
6b8b4de21e Use Optional for types that might be None. 2022-06-05 23:32:32 +02:00
Sergio Martínez Portela
a67bde58d0 Fix repetition on dates with start+end times. 2022-06-05 23:32:28 +02:00
Sergio Martínez Portela
63bb1e67e0 Handle :RESULTS: drawer, and data inside :LOGBOOK: 2022-05-16 23:17:28 +02:00
Sergio Martínez Portela
c87a50f365 Fix handling of Headline hierarchy. 2022-05-16 23:16:20 +02:00
Sergio Martínez Portela
eacbcce376 Avoid false-positives when detecting headlines.
A space should be present after the leading '*' to avoid detection
    of lines that start with bolded text.
2022-05-15 23:39:35 +02:00
Sergio Martínez Portela
7a9cff57f9 Simplify parsing of CodeBlocks. 2022-05-07 23:33:32 +02:00
Sergio Martínez Portela
afd02f55d4 Improve DOM aggregation of CodeBlocks. 2022-05-07 23:02:18 +02:00
Sergio Martínez Portela
cfce08eed0 Handle OrgDoc's ID. 2022-05-07 12:53:09 +02:00
Sergio Martínez Portela
9b550ed2ea Handle links on DOM's LinkItem. 2022-05-06 20:18:44 +02:00
Sergio Martínez Portela
9ef2a8ece6 Handle links in dom's text. 2022-05-06 15:54:14 +02:00