Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Applied patch from Warren at [forum:26371e6b32cb4ebc] to resolve the new behavior of markdown catching message prefixes of #NNN as a header. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | chat-markdown |
| Files: | files | file ages | folders |
| SHA3-256: |
408d584e21d1ae057d46bfac6a107270 |
| User & Date: | stephan 2021-09-19 07:28:08.639 |
Context
|
2021-09-20
| ||
| 11:28 | /chat: add pikchr click handlers to incoming messages. check-in: 326eccf245 user: stephan tags: chat-markdown | |
|
2021-09-19
| ||
| 07:28 | Applied patch from Warren at [forum:26371e6b32cb4ebc] to resolve the new behavior of markdown catching message prefixes of #NNN as a header. check-in: 408d584e21 user: stephan tags: chat-markdown | |
| 05:53 | Updated change log and chat.md for the /chat switch to markdown. check-in: 32bd273ebf user: stephan tags: chat-markdown | |
Changes
Changes to src/markdown.c.
| ︙ | ︙ | |||
1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 |
int level = 0;
size_t i, end, skip, span_beg, span_size;
if( !size || data[0]!='#' ) return 0;
while( level<size && level<6 && data[level]=='#' ){ level++; }
for(i=level; i<size && (data[i]==' ' || data[i]=='\t'); i++);
span_beg = i;
for(end=i; end<size && data[end]!='\n'; end++);
skip = end;
if( end<=i ) return parse_paragraph(ob, rndr, data, size);
while( end && data[end-1]=='#' ){ end--; }
while( end && (data[end-1]==' ' || data[end-1]=='\t') ){ end--; }
| > | 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 |
int level = 0;
size_t i, end, skip, span_beg, span_size;
if( !size || data[0]!='#' ) return 0;
while( level<size && level<6 && data[level]=='#' ){ level++; }
for(i=level; i<size && (data[i]==' ' || data[i]=='\t'); i++);
if ( i == level ) return parse_paragraph(ob, rndr, data, size);
span_beg = i;
for(end=i; end<size && data[end]!='\n'; end++);
skip = end;
if( end<=i ) return parse_paragraph(ob, rndr, data, size);
while( end && data[end-1]=='#' ){ end--; }
while( end && (data[end-1]==' ' || data[end-1]=='\t') ){ end--; }
|
| ︙ | ︙ |