Fossil SCM
Fix a markdown rendering bug reported by [forum post 003837a178|forum:/forumpost/003837a178].
Commit
b4e50e9ace20f5a44eb110c6ac1cea8fc3953709c8f1819701167310b45a7ebf
Parent
3b363b301fd98e5…
1 file changed
+1
-1
+1
-1
| --- src/markdown.c | ||
| +++ src/markdown.c | ||
| @@ -514,11 +514,11 @@ | ||
| 514 | 514 | } |
| 515 | 515 | |
| 516 | 516 | |
| 517 | 517 | /* find_emph_char -- looks for the next emph char, skipping other constructs */ |
| 518 | 518 | static size_t find_emph_char(char *data, size_t size, char c){ |
| 519 | - size_t i = 1; | |
| 519 | + size_t i = data[0]!='`'; | |
| 520 | 520 | |
| 521 | 521 | while( i<size ){ |
| 522 | 522 | while( i<size && data[i]!=c && data[i]!='`' && data[i]!='[' ){ i++; } |
| 523 | 523 | if( i>=size ) return 0; |
| 524 | 524 | |
| 525 | 525 |
| --- src/markdown.c | |
| +++ src/markdown.c | |
| @@ -514,11 +514,11 @@ | |
| 514 | } |
| 515 | |
| 516 | |
| 517 | /* find_emph_char -- looks for the next emph char, skipping other constructs */ |
| 518 | static size_t find_emph_char(char *data, size_t size, char c){ |
| 519 | size_t i = 1; |
| 520 | |
| 521 | while( i<size ){ |
| 522 | while( i<size && data[i]!=c && data[i]!='`' && data[i]!='[' ){ i++; } |
| 523 | if( i>=size ) return 0; |
| 524 | |
| 525 |
| --- src/markdown.c | |
| +++ src/markdown.c | |
| @@ -514,11 +514,11 @@ | |
| 514 | } |
| 515 | |
| 516 | |
| 517 | /* find_emph_char -- looks for the next emph char, skipping other constructs */ |
| 518 | static size_t find_emph_char(char *data, size_t size, char c){ |
| 519 | size_t i = data[0]!='`'; |
| 520 | |
| 521 | while( i<size ){ |
| 522 | while( i<size && data[i]!=c && data[i]!='`' && data[i]!='[' ){ i++; } |
| 523 | if( i>=size ) return 0; |
| 524 | |
| 525 |