1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-02 14:29:55 +00:00
Commit Graph

352 Commits

Author SHA1 Message Date
linonetwo
87dc05be9d refactor: use isBlock in macrodef to know inline or block 2024-10-14 16:43:50 +08:00
lin onetwo
5fdc9f365e fix: conditional without elseif 2024-10-14 00:47:37 +08:00
lin onetwo
f220dacdd8 feat: add \n\n based on isBlock, if could also be inline 2024-10-14 00:47:13 +08:00
lin onetwo
0f385675c2 fix: empty list item 2024-10-13 22:13:27 +08:00
lin onetwo
47cc03d05d feat: make sure block rule all have \n\n for visiblity 2024-10-13 21:36:35 +08:00
lin onetwo
fb9f7a5ea1 fix: table space and horizrule block new line 2024-10-13 21:31:51 +08:00
lin onetwo
72dd18dfa5 fix: positional attribute in macro call 2024-10-13 21:31:29 +08:00
lin onetwo
53296a484c fix: macro in widget param 2024-10-13 20:55:03 +08:00
lin onetwo
375df47b19 feat: restore inline macro def 2024-10-13 03:26:35 +08:00
lin onetwo
1c50996a13 refactor: lowercase the parseblock rule name 2024-10-02 13:49:44 +08:00
linonetwo
23489ce83c refactor: no need for new $tw.Wiki() 2024-09-30 18:15:30 +08:00
linonetwo
58507c06b4 refactor: move tiddlers to /data 2024-09-30 18:11:22 +08:00
lin onetwo
043f60b299
Update test-wikitext-serialize.js 2024-09-04 16:44:03 +08:00
lin onetwo
658053643f Merge remote-tracking branch 'upstream/master' into feat/to-string 2024-08-10 12:44:10 +08:00
lin onetwo
08e9312295 feat: run all tests 2024-08-10 02:35:07 +08:00
lin onetwo
c4f6136fa7 feat: use void node to carry important info for typedblock 2024-08-10 02:33:50 +08:00
lin onetwo
589241a406 feat: transcludeblock 2024-08-10 01:31:43 +08:00
lin onetwo
43f3f8b5ed feat: styleinline 2024-08-09 19:50:07 +08:00
lin onetwo
7c73f1f922 feat: styleblock 2024-08-08 23:52:48 +08:00
Rob Hoelz
3707e10ef6
Add start/end properties for table row/cell elements (#8494)
* Add test for existing table parsing functionality

* Add expected start/end for tr elements in table wikitext test

* Populate start/end properties for tr elements

* Add expected start/end for th/td elements in table wikitext test

* Populate start/end properties for th/td elements
2024-08-08 10:06:44 +01:00
lin onetwo
078cd5fba2 feat: add to styleblock 2024-08-08 01:16:27 +08:00
lin onetwo
fb8732a081 lint: ' -> " 2024-08-07 23:58:45 +08:00
lin onetwo
b8125d13b8 Update test-wikitext-parser.js 2024-08-05 03:04:03 +08:00
lin onetwo
e7d4819f03 lint: quote 2024-08-05 02:52:12 +08:00
lin onetwo
9dbbcefe47 Update test-wikitext-parser.js 2024-08-05 02:38:37 +08:00
lin onetwo
893edf9ae3 lint: quote 2024-08-05 01:34:30 +08:00
lin onetwo
82ae7678a7 test: add rule: 'parseBlock' and isRuleEnd: true 2024-08-04 14:39:20 +00:00
lin onetwo
96adee987a
Merge branch 'TiddlyWiki:master' into feat/to-string 2024-08-04 21:40:41 +08:00
lin onetwo
9df36a2b15 refactor: ' -> " 2024-08-04 00:29:33 +08:00
lin onetwo
f69795c62e feat: list 2024-08-03 22:41:58 +08:00
lin onetwo
7b4ea476f3 fix: use "" for string param 2024-08-03 20:29:55 +08:00
lin onetwo
63613ceec0 feat: $tw.utils.serializeAttribute 2024-08-03 16:21:55 +08:00
lin onetwo
383e1b68b5 fix: some test 2024-08-03 02:04:26 +08:00
lin onetwo
e49238df55 fix: some test 2024-08-03 01:19:05 +08:00
lin onetwo
bfd116a438 feat: generate more rule and tests 2024-08-02 22:54:45 +08:00
lin onetwo
2aff9fecf1 feat: generate more rule and tests 2024-08-01 23:29:48 +08:00
poc2go
39bd45002e
Test to verify that reserved wikitext constructs are not parsed (#8384) 2024-08-01 11:47:37 +01:00
lin onetwo
84e27c05b9 feat: handle tailing \n that may be missing 2024-07-30 00:46:16 +08:00
lin onetwo
8cbf85592d Create test-wikitext-serialize.js 2024-07-29 23:23:53 +08:00
Jeremy Ruston
be22951973 Merge branch 'tiddlywiki-com' 2024-07-25 17:41:47 +01:00
Jeremy Ruston
6f8df68b28 Rename Jermolene/TiddlyWiki5 to TiddlyWiki/TiddlyWiki5 2024-07-25 17:41:28 +01:00
Mario Pietsch
bd936e2b7d
Update test-tags-operator.js (#8401)
Forgot to activate the tests :/
2024-07-18 17:12:22 +01:00
Mario Pietsch
2a8d664c09
tags-operator: add new test (#8392) 2024-07-17 21:51:31 +01:00
Cameron Fischer
a3a9fd3931
Fix for minor transclude wikimethod issue (#8382) 2024-07-15 16:38:27 +01:00
lin onetwo
741aef55e4
Fix: transcludes and backtranscludes operators to always include self-referential transclusion (#8257)
* fix: ignore self-referential transclusion

* feat: support old <$transclude tiddler param

* fix: restore old behavior: include itself like backlinks[]

* refactor: use LinkedList in transcludes[] and backtranscludes[]

* fix: only fallback to title when {{!!xxx}}, not when input is empty

* refactor: move transcludes ast extractor to a file

* refactor: move links ast extractor to a file

* Revert "refactor: move links ast extractor to a file"

This reverts commit 5600a00cd8.

* Revert "refactor: move transcludes ast extractor to a file"

This reverts commit 61d5484f09.

* lint: use pushTop and remove space
2024-06-19 09:38:02 +01:00
lin onetwo
32cbc97a0c
Fix/self transclude (#8254)
* fix: ignore empty tiddler param when extract transcludes

* test: about self transclude
2024-06-12 09:39:43 +01:00
Jeremy Ruston
1a57d08feb Tweak #7866 to omit "rule" property when unset, instead of leaving it null
Also make tests pass
2024-06-08 16:51:00 +01:00
Jeremy Ruston
e4c682d04b Merging #7866: Add start and end properties to WikiText AST nodes
commit 5687d9f44b
Author: Gk0Wk <nmg_wk@yeah.net>
Date:   Wed Dec 6 11:33:43 2023 +0800

    Fix for html parser

commit df0a1b184e
Author: Gk0Wk <nmg_wk@yeah.net>
Date:   Wed Dec 6 02:47:47 2023 +0800

    Fix HTML AST node boundary parsing in WikiText

commit ac8dda0a1a
Author: Gk0Wk <nmg_wk@yeah.net>
Date:   Sat Dec 2 13:02:52 2023 +0800

    update test-wikitext-parser.js, change for-const-of -to .utils.each, add more range attributes

commit e2b9a4ed57
Author: Gk0Wk <nmg_wk@yeah.net>
Date:   Wed Nov 29 22:35:39 2023 +0800

    Add more start-end range attributes for AST

commit d3e62ec56a
Author: Gk0Wk <nmg_wk@yeah.net>
Date:   Wed Nov 29 20:45:00 2023 +0800

    Add rule attribute for WikiText AST nodes

commit 4200495055
Author: Gk0Wk <nmg_wk@yeah.net>
Date:   Wed Nov 29 15:48:38 2023 +0800

    Add start and end properties to AST nodes for list, codeblock, and all other elements
2024-06-08 16:40:20 +01:00
Cameron Fischer
352272905e
Fixed issue where $parameters did nothing with no $transclude (#8203)
* Fixed issue where $parameters did nothing with no $transclude

* Figured I should test \parameters too
2024-06-06 11:20:35 +01:00
Saq Imtiaz
33bc77f46f
fix: nested functions should resolve filter run variables (#8233) 2024-06-04 18:19:41 +01:00