Fossil

Check-in [b4e50e9a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a markdown rendering bug reported by forum post da5c5c4c31.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b4e50e9ace20f5a44eb110c6ac1cea8fc3953709c8f1819701167310b45a7ebf
User & Date: drh 2020-11-20 14:39:00
Original Comment: Fix a markdown rendering bug reported by [forum post 003837a178|forum:/forumpost/003837a178].
Context
2020-11-20
17:56
New pikchr.c with improved text layout for cylinders. ... (check-in: 7c665659 user: drh tags: trunk)
14:39
Fix a markdown rendering bug reported by forum post da5c5c4c31. ... (check-in: b4e50e9a user: drh tags: trunk)
00:53
Fix a typo in the hashpolicy.wiki document. ... (check-in: 3b363b30 user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/markdown.c.

512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
  }
  *pI += (bt == span_nb) ? i : span_nb;
}


/* find_emph_char -- looks for the next emph char, skipping other constructs */
static size_t find_emph_char(char *data, size_t size, char c){
  size_t i = 1;

  while( i<size ){
    while( i<size && data[i]!=c && data[i]!='`' && data[i]!='[' ){ i++; }
    if( i>=size ) return 0;

    /* not counting escaped chars */
    if( i && data[i-1]=='\\' ){







|







512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
  }
  *pI += (bt == span_nb) ? i : span_nb;
}


/* find_emph_char -- looks for the next emph char, skipping other constructs */
static size_t find_emph_char(char *data, size_t size, char c){
  size_t i = data[0]!='`';

  while( i<size ){
    while( i<size && data[i]!=c && data[i]!='`' && data[i]!='[' ){ i++; }
    if( i>=size ) return 0;

    /* not counting escaped chars */
    if( i && data[i-1]=='\\' ){