This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-cf5f5a89-8c91-4386-922e-d7f686d7df5f XWIKI-24009 Open

Nested numbered lists are not serialized correctly

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c1f0b1df-ffe8-4802-9134-1a9ef694fc9b Manuel Leduc created this issue on 11/Feb/26 14:53
 
Summary: Nested numbered list as not serialized correctly
Issue Type: cid:jira-generated-image-avatar-cf5f5a89-8c91-4386-922e-d7f686d7df5f Bug
Affects Versions: 18.0.1
Assignee: Unassigned
Components: Blocknote
Created: 11/Feb/26 14:53
Priority: cid:jira-generated-image-static-major-83f48087-1296-4c6b-83f0-70e32d0ba709 Major
Reporter: Manuel Leduc
Description:

Note: The affect version is inaccurate and must be refined.

Reproduction steps

  1. Create a numbered list with 3 items: A, B, and C
  2. Select B and C then click "next block" on the floating toolbar
  3. Observe the serialized markdown

Expected

Unable to find source-code formatter for language: markdown. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
1. A
  1. B
  1. C

Actual

See how B is wrongly indented.

Unable to find source-code formatter for language: markdown. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
1. A
1. B
   2. C
 
 

2 updates

 
cid:jira-generated-image-avatar-c1f0b1df-ffe8-4802-9134-1a9ef694fc9b Changes by Manuel Leduc on 11/Feb/26 14:53
 
Summary: Nested numbered list as lists are not serialized correctly
Description: Note: The affect version is inaccurate and must be refined.
h2. Reproduction steps
# Create a numbered list with 3 items: A, B, and C
# Select B and C then click "next block" on the floating toolbar
# Observe the serialized markdown

h2. Expected
{
code:markdown noformat }
1. A
  1. B
  1. C
{
code noformat }

h2. Actual

See how B is wrongly indented.
{
code:markdown noformat }
1. A
1. B
   2. C
{
code noformat }