Commit Graph

211 Commits

Author SHA1 Message Date
Guilhem Fauré
8fca926461 remove priorities 2023-05-09 10:10:45 +02:00
Guilhem Fauré
7d99e59c3d parametric paragraph 2023-05-09 09:28:29 +02:00
Guilhem Fauré
07e1855a70 simpler inline tags img|emb|doc 2023-05-04 11:59:55 +02:00
Guilhem Fauré
a113ba79c5 fixed block/inline tags 2023-05-04 11:54:37 +02:00
Guilhem Fauré
8cc7d3640e case insensitive tag regex 2023-05-04 11:35:46 +02:00
Guilhem Fauré
1ccc95b894 progress on supporting raw html tags 2023-05-03 17:00:15 +02:00
Guilhem Fauré
64a0deac93 footnotes & wikilinks OK 2023-05-03 16:32:36 +02:00
Guilhem Fauré
6f9ca8e3ba fix orphan/pair tags 2023-05-03 16:22:16 +02:00
Guilhem Fauré
0f510459e2 tags ok 2023-05-03 16:06:23 +02:00
Guilhem Fauré
c0a7bc0f29 support for block & inline tags 2023-05-02 10:56:28 +02:00
Guilhem Fauré
d1702d6d19 higher priority for tables 2023-04-28 16:06:28 +02:00
Guilhem Fauré
afdf034f6e tags can contain blocks 2023-04-28 16:05:08 +02:00
Guilhem Fauré
0dac418e0a plus grand jeu de test 2023-04-28 15:55:58 +02:00
Guilhem Fauré
3add23a126 works better with lower priority paragraph 2023-04-28 15:46:48 +02:00
Guilhem Fauré
28ab3123df switch to new grammar 2023-04-28 15:44:50 +02:00
Guilhem Fauré
1e59bb6833 new more flexible grammar 2023-04-28 15:44:19 +02:00
Guilhem Fauré
5ed12cf893 playing with priorities, use only -1 2023-04-28 12:50:54 +02:00
Guilhem Fauré
38c3eadea9 single test article with all the spip features 2023-04-28 12:47:40 +02:00
Guilhem Fauré
693f6aa3aa simplified more flexible grammar 2023-04-28 12:40:25 +02:00
Guilhem Fauré
33f26c3ad5 first try more flexible grammar 2023-04-28 12:04:30 +02:00
Guilhem Fauré
e2d5dd421d init new grammar with a more flexible approach based on lazy but general text .+? complemented with contextual positive lookaheads 2023-04-27 17:41:26 +02:00
Guilhem Fauré
6a6f6e6373 filter list type 2023-04-27 17:33:39 +02:00
Guilhem Fauré
83b69a1b83 add test for list 2023-04-27 17:33:09 +02:00
Guilhem Fauré
a3dd9becd0 escaped braces support & escaping braces in test articles, as some syntax errors are just too hard to support (like closing curly brace in middle of normal text) 2023-04-27 17:18:32 +02:00
Guilhem Fauré
9f44397286 support for multi pipe metadata in tags 2023-04-27 17:03:29 +02:00
Guilhem Fauré
b87ed6c0fb add 2 test articles 2023-04-27 17:00:53 +02:00
Guilhem Fauré
a497a3071b support for quotes 2023-04-27 16:58:24 +02:00
Guilhem Fauré
a313af6483 support for table metadata 2023-04-27 16:48:11 +02:00
Guilhem Fauré
c540625259 add a test for tables 2023-04-27 16:43:44 +02:00
Guilhem Fauré
9a5735c046 prevent creation of tokens for each text that seems like markup 2023-04-27 16:36:39 +02:00
Guilhem Fauré
d30e8d07ee support for tags (mostly custom HTML & images) 2023-04-27 15:52:12 +02:00
Guilhem Fauré
a191e16eb3 second test article 2023-04-27 15:17:23 +02:00
Guilhem Fauré
cb36324e9a don’t use inner text as text is now more strict anyway 2023-04-27 15:16:30 +02:00
Guilhem Fauré
87e9a2257e test alternate em/strong 2023-04-27 15:15:54 +02:00
Guilhem Fauré
62558d2713 created precise terminals with preventive lookaheads, named every terminal 2023-04-27 14:49:19 +02:00
Guilhem Fauré
f59782ad77 add test text 2023-04-27 14:45:00 +02:00
Guilhem Fauré
42276b5b5c use lazy repetion for text, simplification of grammar 2023-04-27 11:39:59 +02:00
Guilhem Fauré
d9341177ba add long separator 2023-04-26 15:09:28 +02:00
Guilhem Fauré
06dc438038 higher priority for separators over pure text 2023-04-26 15:04:58 +02:00
Guilhem Fauré
3fe19a8ec6 html aliases for links, but paragraphs are priorized 2023-04-26 15:02:33 +02:00
Guilhem Fauré
9f62b3125b add links & test malformed horizontal line 2023-04-26 15:01:21 +02:00
Guilhem Fauré
0e5442e98e html like aliases 2023-04-26 14:36:56 +02:00
Guilhem Fauré
fc575696ba prettier test output 2023-04-26 14:29:41 +02:00
Guilhem Fauré
c7438403e0 working grammar 2023-04-26 14:29:14 +02:00
Guilhem Fauré
f62c634880 filter start if only one child, newline problem 2023-04-26 11:55:00 +02:00
Guilhem Fauré
5f9b1054ed don’t filter N, test with first test file for now 2023-04-26 11:48:01 +02:00
Guilhem Fauré
68ccfcbf5d test function 2023-04-26 11:41:18 +02:00
Guilhem Fauré
d7247e805a simplified grammar, start in .lark file 2023-04-26 11:34:17 +02:00
Guilhem Fauré
236e9e39d4 simplified grammar, it parses ! 2023-04-26 11:13:47 +02:00
Guilhem Fauré
f4195936eb moved test files to dedicated folder, corrected test file to debug grammar 2023-04-26 10:01:57 +02:00