summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/about/version.gmi3
-rw-r--r--src/gmdocument.c7
2 files changed, 9 insertions, 1 deletions
diff --git a/res/about/version.gmi b/res/about/version.gmi
index 6549dd2f..b9ea37db 100644
--- a/res/about/version.gmi
+++ b/res/about/version.gmi
@@ -6,6 +6,9 @@
6``` 6```
7# Release notes 7# Release notes
8 8
9## 1.9.4
10* Fixed crash when a link is missing both URL and label (just a `=>`).
11
9## 1.9.3 12## 1.9.3
10* Added UI language for Dutch. 13* Added UI language for Dutch.
11* Updated UI translations. 14* Updated UI translations.
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 884f8c07..9d79830b 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -236,7 +236,12 @@ enum iGmLineType lineType_Rangecc(const iRangecc line) {
236 return text_GmLineType; 236 return text_GmLineType;
237 } 237 }
238 if (startsWith_Rangecc(line, "=>")) { 238 if (startsWith_Rangecc(line, "=>")) {
239 return link_GmLineType; 239 iRangecc trim = line;
240 trim_Rangecc(&trim);
241 if (size_Range(&trim) > 2) {
242 return link_GmLineType;
243 }
244 return text_GmLineType;
240 } 245 }
241 if (startsWith_Rangecc(line, "###")) { 246 if (startsWith_Rangecc(line, "###")) {
242 return heading3_GmLineType; 247 return heading3_GmLineType;