Fossil

Check-in [9d6a0aac]
Login

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

Overview
Comment:Support both "1)" and "1." for numbered lists in markdown, as commonmark does. Patch from A. Kupries.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9d6a0aac4264be133fd668df2cc4421e78b7c754b73a27c72f7330bd8201f213
User & Date: drh 2019-03-30 00:46:02.180
Context
2019-03-30
15:40
Backout [f517cb7f] because they both come together anyway and this one is a macro. See https://fossil-scm.org/forum/forumpost/da64c38d6a for discussion. ... (check-in: 3b23b328 user: andybradford tags: trunk)
00:46
Support both "1)" and "1." for numbered lists in markdown, as commonmark does. Patch from A. Kupries. ... (check-in: 9d6a0aac user: drh tags: trunk)
2019-03-27
19:59
Added Jupyter nbviewer link for www/image-format-vs-repo-size.ipynb, and made a few small edits to the notebook after seeing it in that viewer. ... (check-in: f52d63e3 user: wyoung tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/markdown.c.
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
  if( i<size && data[i]==' ') i++;
  if( i<size && data[i]==' ') i++;

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

  if( i+1>=size
   || data[i]!='.'
   || (data[i+1]!=' ' && data[i+1]!='\t')
  ){
   return 0;
  }
  i = i+2;
  while( i<size && (data[i]==' ' || data[i]=='\t') ){ i++; }
  return i;







|







1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
  if( i<size && data[i]==' ') i++;
  if( i<size && data[i]==' ') i++;

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

  if( i+1>=size
   || (data[i]!='.' && data[i]!=')')
   || (data[i+1]!=' ' && data[i+1]!='\t')
  ){
   return 0;
  }
  i = i+2;
  while( i<size && (data[i]==' ' || data[i]=='\t') ){ i++; }
  return i;