From 7a2ab866099edffaba471ad808593f67ee796b21 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 17 Mar 2022 19:01:59 -0400 Subject: Structured content links (#2089) * Update CSS to JSON converter to generalize the remove-property comment * Fix navigation not being updated when _clearContent is run * Add structured content schema for link tags * Add test links * Add external-link icon * Pass Display instance to DisplayContentManager * Update structured content generation * Update link styles --- .../valid-dictionary1/term_bank_1.json | 25 ++++++++++++++++++++++ 1 file changed, 25 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 0d94d6d1..e7506255 100644 --- a/test/data/dictionaries/valid-dictionary1/term_bank_1.json +++ b/test/data/dictionaries/valid-dictionary1/term_bank_1.json @@ -179,6 +179,31 @@ ] }, " text 3" + ]}, + {"type": "structured-content", "content": [ + { + "tag": "a", + "href": "?", + "content": [ + "internal link 1" + ] + }, + " ", + { + "tag": "a", + "href": "?query=よみ&wildcards=off", + "content": [ + "internal link 2" + ] + }, + " ", + { + "tag": "a", + "href": "https://foosoft.net/projects/yomichan/", + "content": [ + "external link" + ] + } ]} ], 100, "P E1" -- cgit v1.2.3