summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-22 16:52:32 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-22 16:52:32 +0200
commitde40f34076fc2f7d2170c4b3d017ab18d2f0d0a1 (patch)
tree3edac1cb51471a425f886af4e5d326dc7533c448
parent3d02b7b06ae9a1473d0ffa43ec39330dd3a10215 (diff)
GmDocument: Arrows as custom link icons
-rw-r--r--src/gmdocument.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 11d477c1..dea7f345 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -306,8 +306,10 @@ static iBool isAllowedLinkIcon_Char_(iChar icon) {
306 } 306 }
307 return isPictograph_Char(icon) || isEmoji_Char(icon) || 307 return isPictograph_Char(icon) || isEmoji_Char(icon) ||
308 /* TODO: Add range(s) of 0x2nnn symbols. */ 308 /* TODO: Add range(s) of 0x2nnn symbols. */
309 icon == 0x2139 /* info */ || icon == 0x2191 /* up arrow */ || 309 icon == 0x2022 /* bullet */ ||
310 icon == 0x2022 /* bullet */ || icon == 0x2a2f /* close X */ || icon == 0x2b50; 310 icon == 0x2139 /* info */ ||
311 (icon >= 0x2190 && icon <= 0x21ff /* arrows */) ||
312 icon == 0x2a2f /* close X */ || icon == 0x2b50;
311} 313}
312 314
313static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *linkId) { 315static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *linkId) {