`,embed:({data:e})=>{const t=e.service;return"vimeo"===t?``:"youtube"===t?``:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:e})=>`${e.text}`,image:({data:e})=>{const t=e.caption?e.caption:"Image";return``},list:({data:e})=>{const t="unordered"===e.style?"ul":"ol",r=(e,t)=>{const o=e.map((e=>{if(!e.content&&!e.items)return`
- ${e.caption}`,delimiter:({data:e})=>" "};return(t={},r={strict:!1})=>{const o={...e,...t};return{parse:e=>(({blocks:e},t,r)=>e.reduce(((e,o)=>{if(o.type in t)return e+t[o.type](o);const i=`[editorjs-html]: Parser function for ${o.type} does not exist`;if(r.strict)throw new Error(i);return console.error(i),e}),""))(e,o,r),parseBlock:e=>((e,t,r)=>{if(e.type in t)return t[e.type](e);const o=`[editorjs-html]: Parser function for ${e.type} does not exist`;if(r.strict)throw new Error(o);console.error(o)})(e,o,r)}}}();
+var edjsHTML=function(){"use strict";var e={code:({data:e})=>`
${e.code}
`,embed:({data:e})=>{const t=e.service;return"vimeo"===t?``:"youtube"===t?``:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:e})=>`${e.text}`,image:({data:e})=>{const t=e.file?.url||e.url||"",r=e.caption||"",n=!r||""===r.trim();return`
- ${e.caption}`,delimiter:({data:e})=>" "};return(t={},r={strict:!1})=>{const n={...e,...t};return{parse:e=>(({blocks:e},t,r)=>e.reduce(((e,n)=>{if(n.type in t)return e+t[n.type](n);const o=`[editorjs-html]: Parser function for ${n.type} does not exist`;if(r.strict)throw new Error(o);return console.error(o),e}),""))(e,n,r),parseBlock:e=>((e,t,r)=>{if(e.type in t)return t[e.type](e);const n=`[editorjs-html]: Parser function for ${e.type} does not exist`;if(r.strict)throw new Error(n);console.error(n)})(e,n,r)}}}();
diff --git a/.build/edjsHTML.js b/.build/edjsHTML.js
index e9f5668..4d59a66 100644
--- a/.build/edjsHTML.js
+++ b/.build/edjsHTML.js
@@ -1 +1 @@
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).edjsHTML=t()}(this,(function(){"use strict";var e={code:({data:e})=>`
${e.code}
`,embed:({data:e})=>{const t=e.service;return"vimeo"===t?``:"youtube"===t?``:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:e})=>`${e.text}`,image:({data:e})=>{const t=e.caption?e.caption:"Image";return``},list:({data:e})=>{const t="unordered"===e.style?"ul":"ol",r=(e,t)=>{const o=e.map((e=>{if(!e.content&&!e.items)return`
- ${e.caption}`,delimiter:({data:e})=>" "};return(t={},r={strict:!1})=>{const o={...e,...t};return{parse:e=>(({blocks:e},t,r)=>e.reduce(((e,o)=>{if(o.type in t)return e+t[o.type](o);const i=`[editorjs-html]: Parser function for ${o.type} does not exist`;if(r.strict)throw new Error(i);return console.error(i),e}),""))(e,o,r),parseBlock:e=>((e,t,r)=>{if(e.type in t)return t[e.type](e);const o=`[editorjs-html]: Parser function for ${e.type} does not exist`;if(r.strict)throw new Error(o);console.error(o)})(e,o,r)}}}));
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).edjsHTML=t()}(this,(function(){"use strict";var e={code:({data:e})=>`
${e.code}
`,embed:({data:e})=>{const t=e.service;return"vimeo"===t?``:"youtube"===t?``:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:e})=>`${e.text}`,image:({data:e})=>{const t=e.file?.url||e.url||"",r=e.caption||"",n=!r||""===r.trim();return`
- ${e.caption}`,delimiter:({data:e})=>" "};return(t={},r={strict:!1})=>{const n={...e,...t};return{parse:e=>(({blocks:e},t,r)=>e.reduce(((e,n)=>{if(n.type in t)return e+t[n.type](n);const o=`[editorjs-html]: Parser function for ${n.type} does not exist`;if(r.strict)throw new Error(o);return console.error(o),e}),""))(e,n,r),parseBlock:e=>((e,t,r)=>{if(e.type in t)return t[e.type](e);const n=`[editorjs-html]: Parser function for ${e.type} does not exist`;if(r.strict)throw new Error(n);console.error(n)})(e,n,r)}}}));
diff --git a/.build/edjsHTML.node.js b/.build/edjsHTML.node.js
index 3e211f0..7de3ff7 100644
--- a/.build/edjsHTML.node.js
+++ b/.build/edjsHTML.node.js
@@ -1 +1 @@
-"use strict";var e={code:({data:e})=>`
${e.code}
`,embed:({data:e})=>{const t=e.service;return"vimeo"===t?``:"youtube"===t?``:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:e})=>`${e.text}`,image:({data:e})=>{const t=e.caption?e.caption:"Image";return``},list:({data:e})=>{const t="unordered"===e.style?"ul":"ol",r=(e,t)=>{const o=e.map((e=>{if(!e.content&&!e.items)return`
- ${e.caption}`,delimiter:({data:e})=>" "};module.exports=(t={},r={strict:!1})=>{const o={...e,...t};return{parse:e=>(({blocks:e},t,r)=>e.reduce(((e,o)=>{if(o.type in t)return e+t[o.type](o);const i=`[editorjs-html]: Parser function for ${o.type} does not exist`;if(r.strict)throw new Error(i);return console.error(i),e}),""))(e,o,r),parseBlock:e=>((e,t,r)=>{if(e.type in t)return t[e.type](e);const o=`[editorjs-html]: Parser function for ${e.type} does not exist`;if(r.strict)throw new Error(o);console.error(o)})(e,o,r)}};
+"use strict";var e={code:({data:e})=>`
${e.code}
`,embed:({data:e})=>{const t=e.service;return"vimeo"===t?``:"youtube"===t?``:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:e})=>`${e.text}`,image:({data:e})=>{const t=e.file?.url||e.url||"",r=e.caption||"",n=!r||""===r.trim();return`
`;
+ // If it's legacy format (just strings)
+ if (typeof item === "string") {
+ return `
${item}
`;
+ }
+ // For v2.0 format with content property
+ let content = item.content || "";
let nestedList = "";
- if (item.items?.length) nestedList = recursor(item.items, listStyle);
- if (item.content) return `