Fossil

Check-in [25028896e4]
Login

Check-in [25028896e4]

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

Overview
Comment:Check if markdown paragraphs contains lists. Fixes issue reported in [forum:b598ac56defddb2a].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | markdown-multiple-sublists
Files: files | file ages | folders
SHA3-256: 25028896e4f786c1e13510428988ff00cba5f7031771f153f8d0bd73d4ea86c0
User & Date: preben 2023-11-02 12:44:05
Context
2023-11-11
17:59
Check if markdown paragraphs contains lists. Fixes issue reported in [forum:b598ac56defddb2a]. ... (check-in: a8782f33d3 user: drh tags: trunk)
2023-11-02
12:44
Check if markdown paragraphs contains lists. Fixes issue reported in [forum:b598ac56defddb2a]. ... (Closed-Leaf check-in: 25028896e4 user: preben tags: markdown-multiple-sublists)
2023-11-01
18:56
Version 2.23 ... (check-in: 47362306a7 user: drh tags: trunk, release, version-2.23)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/markdown.c.

1681
1682
1683
1684
1685
1686
1687
1688




1689
1690
1691
1692
1693
1694
1695
    ** "end" is left with a value such that data[end] is one byte
    ** past the first '\n' or one byte past the end of the string */
    if( is_empty(data+i, size-i)
     || (level = is_headerline(data+i, size-i))!= 0
    ){
      break;
    }
    if( (i && data[i]=='#') || is_hrule(data+i, size-i) ){




      end = i;
      break;
    }
    i = end;
  }

  work_size = i;







|
>
>
>
>







1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
    ** "end" is left with a value such that data[end] is one byte
    ** past the first '\n' or one byte past the end of the string */
    if( is_empty(data+i, size-i)
     || (level = is_headerline(data+i, size-i))!= 0
    ){
      break;
    }
    if( (i && data[i]=='#')
     || is_hrule(data+i, size-i)
     || prefix_uli(data+i, size-i)
     || prefix_oli(data+i, size-i)
    ){
      end = i;
      break;
    }
    i = end;
  }

  work_size = i;