From f68ad1f843607d4ba1ad216fe16305c420cee8d6 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 4 Sep 2021 12:43:56 -0400 Subject: Structured content data (#1930) * Add support for structured-content data attributes * Assign dataset properties * Don't remove data-sc attributes * Use helper functions * Update test data --- test/data/dictionaries/valid-dictionary1/term_bank_1.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') diff --git a/test/data/dictionaries/valid-dictionary1/term_bank_1.json b/test/data/dictionaries/valid-dictionary1/term_bank_1.json index 58136d79..0d94d6d1 100644 --- a/test/data/dictionaries/valid-dictionary1/term_bank_1.json +++ b/test/data/dictionaries/valid-dictionary1/term_bank_1.json @@ -164,6 +164,21 @@ ] }, "margin" + ]}, + {"type": "structured-content", "content": [ + "text 1 ", + { + "tag": "span", + "data": { + "": "empty", + "a": "b", + "c": "d" + }, + "content": [ + "text 2" + ] + }, + " text 3" ]} ], 100, "P E1" -- cgit v1.2.3