Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fixed a paren nesting bug that prevented multi-character hashtags from being processed. It would stop at the second character. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | markdown-tagrefs |
| Files: | files | file ages | folders |
| SHA3-256: |
e211f1ab429f94c9be7f4a8f78c60934 |
| User & Date: | wyoung 2021-09-21 16:42:25.367 |
Context
|
2021-09-21
| ||
| 17:34 | More refinement of the token selection for #hashtag and @name references. check-in: 3363ab42c0 user: stephan tags: markdown-tagrefs | |
| 16:42 | Fixed a paren nesting bug that prevented multi-character hashtags from being processed. It would stop at the second character. check-in: e211f1ab42 user: wyoung tags: markdown-tagrefs | |
| 16:38 | Added '@' and '#' prefixes in spans. Initial commit ate them. check-in: 398cfa0be0 user: wyoung tags: markdown-tagrefs | |
Changes
Changes to src/markdown.c.
| ︙ | ︙ | |||
911 912 913 914 915 916 917 |
size_t offset,
size_t size
){
size_t end;
struct Blob work = BLOB_INITIALIZER;
if (size < 2 || !isalnum(data[1])) return 0;
| | | 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 |
size_t offset,
size_t size
){
size_t end;
struct Blob work = BLOB_INITIALIZER;
if (size < 2 || !isalnum(data[1])) return 0;
for (end = 2; (end < size) && (isalnum(data[end]) || data[end] == '.'); ++end) /* */ ;
blob_init(&work, data + 1, end - 1);
rndr->make.tagspan(ob, &work, MKDT_HASH, rndr->make.opaque);
return end;
}
|
| ︙ | ︙ |