diff --git a/build/block.json b/build/block.json
index a1b79bc..498c94f 100644
--- a/build/block.json
+++ b/build/block.json
@@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/block.json",
"apiVersion": 2,
"name": "simpletoc/toc",
- "version": "6.0.3",
+ "version": "6.0.4",
"title": "SimpleTOC",
"category": "layout",
"icon": "",
diff --git a/build/index.asset.php b/build/index.asset.php
index 0e60930..c994cf6 100644
--- a/build/index.asset.php
+++ b/build/index.asset.php
@@ -1 +1 @@
- array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '4cb8d1e9b1d083dcfac1');
+ array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '9692766d7f1d273bbd56');
diff --git a/build/index.js b/build/index.js
index b05d9d9..a09bc76 100644
--- a/build/index.js
+++ b/build/index.js
@@ -1 +1 @@
-(()=>{"use strict";var e={n:t=>{var l=t&&t.__esModule?()=>t.default:()=>t;return e.d(l,{a:l}),l},d:(t,l)=>{for(var n in l)e.o(l,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:l[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.element,l=window.wp.blocks,n=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"simpletoc/toc","version":"6.0.3","title":"SimpleTOC","category":"layout","icon":"","keywords":["TOC","Table of Contents","SimpleTOC","Index"],"supports":{"align":["wide","full"]},"description":"Adds a Table of Contents.","attributes":{"no_title":{"type":"boolean","default":false},"title_level":{"type":"integer","default":2},"title_text":{"type":"string"},"use_ol":{"type":"boolean","default":false},"remove_indent":{"type":"boolean","default":false},"add_smooth":{"type":"boolean","default":false},"use_absolute_urls":{"type":"boolean","default":false},"max_level":{"type":"integer","default":6},"min_level":{"type":"integer","default":1},"updated":{"type":"integer"},"accordion":{"type":"boolean","default":false},"wrapper":{"type":"boolean","default":false}},"textdomain":"simpletoc","editorScript":"file:index.js","editorStyle":"file:index.css"}'),o=window.wp.i18n,i=window.wp.blockEditor,a=window.wp.editor,c=window.wp.serverSideRender;var s=e.n(c);const r=window.wp.primitives,m=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),d=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),v=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),h=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),p=window.wp.components;function u(e){let{level:l,isPressed:n=!1}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 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(l)?(0,t.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},(0,t.createElement)(p.Path,{d:o[l]})):null}const _=[0,1,2,3,4,5,6],g={className:"block-library-heading-level-dropdown"};function w(e){let{selectedLevel:l,onChange:n}=e;return(0,t.createElement)(p.ToolbarDropdownMenu,{popoverProps:g,icon:(0,t.createElement)(u,{level:l}),label:(0,o.__)("Change heading level tag"),controls:_.map((e=>{{const o=e===l;return{icon:(0,t.createElement)(u,{level:e,isPressed:o}),isActive:o,onClick(){n(e)}}}}))})}const b=window.wp.data,E=(0,t.createElement)("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 500 500",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"m365.983 78.248c2.72-32.415 29.921-57.908 63.029-57.908 34.91 0 63.253 28.342 63.253 63.252s-28.343 63.252-63.253 63.252v269.582c0 25.232-20.485 45.718-45.718 45.718h-313.62c-25.233 0-45.719-20.486-45.719-45.718v-292.46c0-25.233 20.486-45.718 45.719-45.718zm-245.943 324.857c-16.883 0-30.511-13.719-30.511-30.714 0-16.79 13.628-30.714 30.511-30.714 16.679 0 30.511 13.924 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714zm50.851-40.952h183.063v20.476h-183.063zm-50.851-61.428c-16.883 0-30.511-13.719-30.511-30.714 0-16.79 13.628-30.714 30.511-30.714 16.679 0 30.511 13.924 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714zm50.851-40.952h183.063v20.476h-183.063zm-50.851-61.428c-16.883 0-30.511-13.719-30.511-30.714 0-16.791 13.628-30.714 30.511-30.714 16.679 0 30.511 13.923 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714zm50.851-40.952h183.063v20.476h-183.063zm253.007-44.649v-24.188h-24.008v-10.108h24.008v-24.008h10.229v24.008h24.008v10.108h-24.008v24.188z"}));(0,l.registerBlockType)(n,{icon:E,edit:function(e){let{attributes:l,setAttributes:n}=e;const c=(0,i.useBlockProps)(),{returnisSaving:r,returnisSavingNonPostEntityChanges:u}=(0,b.useSelect)((e=>{const{isSavingPost:t,isSavingNonPostEntityChanges:l}=e(a.store);return{returnisSaving:t(),returnisSavingNonPostEntityChanges:l()}})),_=(0,t.createElement)(i.BlockControls,{group:"block"},!(l.no_title||l.accordion)&&(0,t.createElement)(w,{selectedLevel:l.title_level,onChange:e=>n({title_level:Number(e)})}),(0,t.createElement)(p.ToolbarButton,{icon:m,title:(0,o.__)("Convert to unordered list","simpletoc"),describedBy:(0,o.__)("Convert to unordered list","simpletoc"),isActive:!1===l.use_ol,onClick:()=>{n({use_ol:!1})}}),(0,t.createElement)(p.ToolbarButton,{icon:d,title:(0,o.__)("Convert to ordered list","simpletoc"),describedBy:(0,o.__)("Convert to ordered list","simpletoc"),isActive:!0===l.use_ol,onClick:()=>{n({use_ol:!0})}}),(0,t.createElement)(p.ToolbarButton,{icon:v,title:(0,o.__)("Indent list","simpletoc"),describedBy:(0,o.__)("Indent list","simpletoc"),isActive:!0===l.remove_indent,onClick:()=>{n({remove_indent:!0})}}),(0,t.createElement)(p.ToolbarButton,{icon:h,title:(0,o.__)("Outdent list","simpletoc"),describedBy:(0,o.__)("Outdent list","simpletoc"),isActive:!1===l.remove_indent,onClick:()=>{n({remove_indent:!1})}})),g=(0,t.createElement)(i.InspectorControls,null,(0,t.createElement)(p.Panel,null,(0,t.createElement)(p.PanelBody,null,!l.no_title&&(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.TextControl,{label:(0,o.__)("Heading Text","simpletoc"),help:(0,o.__)("Set the heading text of the block.","simpletoc")+" "+(0,o.__)("Default value","simpletoc")+": "+(0,o.__)("Table of Contents","simpletoc"),value:l.title_text,onChange:e=>n({title_text:e||(0,o.__)("Table of Contents","simpletoc")})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Remove heading","simpletoc"),checked:l.no_title,onChange:()=>n({no_title:!l.no_title})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.SelectControl,{label:(0,o.__)("Minimum level","simpletoc"),help:(0,o.__)("Minimum depth of the headings.","simpletoc"),value:l.min_level,options:[{label:(0,o.__)("Including","simpletoc")+" H6",value:"6"},{label:(0,o.__)("Including","simpletoc")+" H5",value:"5"},{label:(0,o.__)("Including","simpletoc")+" H4",value:"4"},{label:(0,o.__)("Including","simpletoc")+" H3",value:"3"},{label:(0,o.__)("Including","simpletoc")+" H2",value:"2"},{label:(0,o.__)("Including","simpletoc")+" H1 ("+(0,o.__)("default","simpletoc")+")",value:"1"}],onChange:e=>n({min_level:Number(e)})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.SelectControl,{label:(0,o.__)("Maximum level","simpletoc"),help:(0,o.__)("Maximum depth of the headings.","simpletoc"),value:l.max_level,options:[{label:(0,o.__)("Including","simpletoc")+" H6 ("+(0,o.__)("default","simpletoc")+")",value:"6"},{label:(0,o.__)("Including","simpletoc")+" H5",value:"5"},{label:(0,o.__)("Including","simpletoc")+" H4",value:"4"},{label:(0,o.__)("Including","simpletoc")+" H3",value:"3"},{label:(0,o.__)("Including","simpletoc")+" H2",value:"2"},{label:(0,o.__)("Including","simpletoc")+" H1",value:"1"}],onChange:e=>n({max_level:Number(e)})})))),(0,t.createElement)(p.Panel,null,(0,t.createElement)(p.PanelBody,{title:(0,o.__)("Advanced Features","simpletoc"),icon:"settings",initialOpen:!1},(0,t.createElement)(p.PanelRow,null,(0,t.createElement)("div",{style:{marginBottom:"1em",border:"1px solid rgba(0, 0, 0, 0.05)",padding:"0.5em",backgroundColor:"#f7f7f7"}},(0,t.createElement)("p",null,(0,t.createElement)("strong",null,(0,o.__)("Think about making a donation if you use any of these features.","simpletoc"))),(0,t.createElement)(p.ExternalLink,{href:"https://marc.tv/out/donate"},(0,o.__)("Donate here!","simpletoc")))),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Hide in accordion menu","simpletoc"),help:(0,o.__)("Adds minimal JavaScript and css styles.","simpletoc"),checked:l.accordion,onChange:()=>n({accordion:!l.accordion})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Smooth scrolling support","simpletoc"),help:(0,o.__)('Adds the following CSS to the HTML element: "scroll-behavior: smooth;"',"simpletoc"),checked:l.add_smooth,onChange:()=>n({add_smooth:!l.add_smooth})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Use absolute urls","simpletoc"),help:(0,o.__)("Adds the permalink url to the fragment.","simpletoc"),checked:l.use_absolute_urls,onChange:()=>n({use_absolute_urls:!l.use_absolute_urls})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Wrapper div","simpletoc"),help:(0,o.__)('Additionally adds the role "navigation" and ARIA attributes.',"simpletoc"),checked:l.wrapper,onChange:()=>n({wrapper:!l.wrapper})})))));return(0,t.createElement)("div",c,_,g,r||u?(0,t.createElement)(p.Spinner,null):(0,t.createElement)(s(),{block:"simpletoc/toc",attributes:l}))},save:function(){return null}})})();
\ No newline at end of file
+(()=>{"use strict";var e={n:t=>{var l=t&&t.__esModule?()=>t.default:()=>t;return e.d(l,{a:l}),l},d:(t,l)=>{for(var n in l)e.o(l,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:l[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.element,l=window.wp.blocks,n=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"simpletoc/toc","version":"6.0.4","title":"SimpleTOC","category":"layout","icon":"","keywords":["TOC","Table of Contents","SimpleTOC","Index"],"supports":{"align":["wide","full"]},"description":"Adds a Table of Contents.","attributes":{"no_title":{"type":"boolean","default":false},"title_level":{"type":"integer","default":2},"title_text":{"type":"string"},"use_ol":{"type":"boolean","default":false},"remove_indent":{"type":"boolean","default":false},"add_smooth":{"type":"boolean","default":false},"use_absolute_urls":{"type":"boolean","default":false},"max_level":{"type":"integer","default":6},"min_level":{"type":"integer","default":1},"updated":{"type":"integer"},"accordion":{"type":"boolean","default":false},"wrapper":{"type":"boolean","default":false}},"textdomain":"simpletoc","editorScript":"file:index.js","editorStyle":"file:index.css"}'),o=window.wp.i18n,i=window.wp.blockEditor,a=window.wp.editor,c=window.wp.serverSideRender;var s=e.n(c);const r=window.wp.primitives,m=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),d=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),v=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),h=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),p=window.wp.components;function u(e){let{level:l,isPressed:n=!1}=e;const o={0:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z",1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1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8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(l)?(0,t.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},(0,t.createElement)(p.Path,{d:o[l]})):null}const _=[0,1,2,3,4,5,6],g={className:"block-library-heading-level-dropdown"};function w(e){let{selectedLevel:l,onChange:n}=e;return(0,t.createElement)(p.ToolbarDropdownMenu,{popoverProps:g,icon:(0,t.createElement)(u,{level:l}),label:(0,o.__)("Change heading level tag"),controls:_.map((e=>{{const o=e===l;return{icon:(0,t.createElement)(u,{level:e,isPressed:o}),isActive:o,onClick(){n(e)}}}}))})}const b=window.wp.data,E=(0,t.createElement)("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 500 500",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"m365.983 78.248c2.72-32.415 29.921-57.908 63.029-57.908 34.91 0 63.253 28.342 63.253 63.252s-28.343 63.252-63.253 63.252v269.582c0 25.232-20.485 45.718-45.718 45.718h-313.62c-25.233 0-45.719-20.486-45.719-45.718v-292.46c0-25.233 20.486-45.718 45.719-45.718zm-245.943 324.857c-16.883 0-30.511-13.719-30.511-30.714 0-16.79 13.628-30.714 30.511-30.714 16.679 0 30.511 13.924 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714zm50.851-40.952h183.063v20.476h-183.063zm-50.851-61.428c-16.883 0-30.511-13.719-30.511-30.714 0-16.79 13.628-30.714 30.511-30.714 16.679 0 30.511 13.924 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714zm50.851-40.952h183.063v20.476h-183.063zm-50.851-61.428c-16.883 0-30.511-13.719-30.511-30.714 0-16.791 13.628-30.714 30.511-30.714 16.679 0 30.511 13.923 30.511 30.714 0 16.995-13.832 30.714-30.511 30.714zm50.851-40.952h183.063v20.476h-183.063zm253.007-44.649v-24.188h-24.008v-10.108h24.008v-24.008h10.229v24.008h24.008v10.108h-24.008v24.188z"}));(0,l.registerBlockType)(n,{icon:E,edit:function(e){let{attributes:l,setAttributes:n}=e;const c=(0,i.useBlockProps)(),{returnisSaving:r,returnisSavingNonPostEntityChanges:u}=(0,b.useSelect)((e=>{const{isSavingPost:t,isSavingNonPostEntityChanges:l}=e(a.store);return{returnisSaving:t(),returnisSavingNonPostEntityChanges:l()}})),_=(0,t.createElement)(i.BlockControls,{group:"block"},!(l.no_title||l.accordion)&&(0,t.createElement)(w,{selectedLevel:l.title_level,onChange:e=>n({title_level:Number(e)})}),(0,t.createElement)(p.ToolbarButton,{icon:m,title:(0,o.__)("Convert to unordered list","simpletoc"),describedBy:(0,o.__)("Convert to unordered list","simpletoc"),isActive:!1===l.use_ol,onClick:()=>{n({use_ol:!1})}}),(0,t.createElement)(p.ToolbarButton,{icon:d,title:(0,o.__)("Convert to ordered list","simpletoc"),describedBy:(0,o.__)("Convert to ordered list","simpletoc"),isActive:!0===l.use_ol,onClick:()=>{n({use_ol:!0})}}),(0,t.createElement)(p.ToolbarButton,{icon:v,title:(0,o.__)("Indent list","simpletoc"),describedBy:(0,o.__)("Indent list","simpletoc"),isActive:!0===l.remove_indent,onClick:()=>{n({remove_indent:!0})}}),(0,t.createElement)(p.ToolbarButton,{icon:h,title:(0,o.__)("Outdent list","simpletoc"),describedBy:(0,o.__)("Outdent list","simpletoc"),isActive:!1===l.remove_indent,onClick:()=>{n({remove_indent:!1})}})),g=(0,t.createElement)(i.InspectorControls,null,(0,t.createElement)(p.Panel,null,(0,t.createElement)(p.PanelBody,null,!l.no_title&&(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.TextControl,{label:(0,o.__)("Heading Text","simpletoc"),help:(0,o.__)("Set the heading text of the block.","simpletoc")+" "+(0,o.__)("Default value","simpletoc")+": "+(0,o.__)("Table of Contents","simpletoc"),value:l.title_text,onChange:e=>n({title_text:e||(0,o.__)("Table of Contents","simpletoc")})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Remove heading","simpletoc"),checked:l.no_title,onChange:()=>n({no_title:!l.no_title})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.SelectControl,{label:(0,o.__)("Minimum level","simpletoc"),help:(0,o.__)("Minimum depth of the headings.","simpletoc"),value:l.min_level,options:[{label:(0,o.__)("Including","simpletoc")+" H6",value:"6"},{label:(0,o.__)("Including","simpletoc")+" H5",value:"5"},{label:(0,o.__)("Including","simpletoc")+" H4",value:"4"},{label:(0,o.__)("Including","simpletoc")+" H3",value:"3"},{label:(0,o.__)("Including","simpletoc")+" H2",value:"2"},{label:(0,o.__)("Including","simpletoc")+" H1 ("+(0,o.__)("default","simpletoc")+")",value:"1"}],onChange:e=>n({min_level:Number(e)})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.SelectControl,{label:(0,o.__)("Maximum level","simpletoc"),help:(0,o.__)("Maximum depth of the headings.","simpletoc"),value:l.max_level,options:[{label:(0,o.__)("Including","simpletoc")+" H6 ("+(0,o.__)("default","simpletoc")+")",value:"6"},{label:(0,o.__)("Including","simpletoc")+" H5",value:"5"},{label:(0,o.__)("Including","simpletoc")+" H4",value:"4"},{label:(0,o.__)("Including","simpletoc")+" H3",value:"3"},{label:(0,o.__)("Including","simpletoc")+" H2",value:"2"},{label:(0,o.__)("Including","simpletoc")+" H1",value:"1"}],onChange:e=>n({max_level:Number(e)})})))),(0,t.createElement)(p.Panel,null,(0,t.createElement)(p.PanelBody,{title:(0,o.__)("Advanced Features","simpletoc"),icon:"settings",initialOpen:!1},(0,t.createElement)(p.PanelRow,null,(0,t.createElement)("div",{style:{marginBottom:"1em",border:"1px solid rgba(0, 0, 0, 0.05)",padding:"0.5em",backgroundColor:"#f7f7f7"}},(0,t.createElement)("p",null,(0,t.createElement)("strong",null,(0,o.__)("Think about making a donation if you use any of these features.","simpletoc"))),(0,t.createElement)(p.ExternalLink,{href:"https://marc.tv/out/donate"},(0,o.__)("Donate here!","simpletoc")))),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Hide in accordion menu","simpletoc"),help:(0,o.__)("Adds minimal JavaScript and css styles.","simpletoc"),checked:l.accordion,onChange:()=>n({accordion:!l.accordion})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Smooth scrolling support","simpletoc"),help:(0,o.__)('Adds the following CSS to the HTML element: "scroll-behavior: smooth;"',"simpletoc"),checked:l.add_smooth,onChange:()=>n({add_smooth:!l.add_smooth})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Use absolute urls","simpletoc"),help:(0,o.__)("Adds the permalink url to the fragment.","simpletoc"),checked:l.use_absolute_urls,onChange:()=>n({use_absolute_urls:!l.use_absolute_urls})})),(0,t.createElement)(p.PanelRow,null,(0,t.createElement)(p.ToggleControl,{label:(0,o.__)("Wrapper div","simpletoc"),help:(0,o.__)('Additionally adds the role "navigation" and ARIA attributes.',"simpletoc"),checked:l.wrapper,onChange:()=>n({wrapper:!l.wrapper})})))));return(0,t.createElement)("div",c,_,g,r||u?(0,t.createElement)(p.Spinner,null):(0,t.createElement)(s(),{block:"simpletoc/toc",attributes:l}))},save:function(){return null}})})();
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 4340710..d917dcb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "simpletoc",
- "version": "6.0.3",
+ "version": "6.0.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "simpletoc",
- "version": "6.0.3",
+ "version": "6.0.4",
"license": "GPL-2.0-or-later",
"dependencies": {
"@wordpress/i18n": "^4.30.0",
@@ -15,7 +15,7 @@
},
"devDependencies": {
"@wordpress/env": "^5.15.0",
- "@wordpress/scripts": "26.1.0"
+ "@wordpress/scripts": "^26.1.0"
}
},
"node_modules/@ampproject/remapping": {
diff --git a/package.json b/package.json
index 29be362..81d505e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "simpletoc",
- "version": "6.0.3",
+ "version": "6.0.4",
"author": "Marc Tönsing",
"description": "SEO-friendly Table of Contents Gutenberg block. No JavaScript and no CSS means faster loading.",
"main": "build/index.js",
@@ -23,7 +23,7 @@
},
"devDependencies": {
"@wordpress/env": "^5.15.0",
- "@wordpress/scripts": "26.1.0"
+ "@wordpress/scripts": "^26.1.0"
},
"dependencies": {
"@wordpress/i18n": "^4.30.0",
diff --git a/plugin.php b/plugin.php
index 35b3ec8..16b430f 100644
--- a/plugin.php
+++ b/plugin.php
@@ -4,7 +4,7 @@
* Plugin Name: SimpleTOC - Table of Contents Block
* Plugin URI: https://marc.tv/simpletoc-wordpress-inhaltsverzeichnis-plugin-gutenberg/
* Description: SEO-friendly Table of Contents Gutenberg block. No JavaScript and no CSS means faster loading.
- * Version: 6.0.3
+ * Version: 6.0.4
* Author: Marc Tönsing
* Author URI: https://marc.tv
* Text Domain: simpletoc
diff --git a/readme.txt b/readme.txt
index b6a9d98..8c55761 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Tags: Gutenberg, block, TOC, Table of Contents, AMP
Requires at least: 5.9
Donate link: https://marc.tv/out/donate
Tested up to: 6.2
-Stable tag: 6.0.3
+Stable tag: 6.0.4
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -50,6 +50,9 @@ SimpleTOC is open-source and developed on [GitHub Pages](https://github.com/mtoe
== Changelog ==
+= 6.0.4 =
+* Fix: specific min/max values for could result in merged headlines.
+
= 6.0.2 =
* Fix: "Update failed" with error 500 when Rank Math is installed.
diff --git a/src/block.json b/src/block.json
index e3ab71a..516bee0 100644
--- a/src/block.json
+++ b/src/block.json
@@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/block.json",
"apiVersion": 2,
"name": "simpletoc/toc",
- "version": "6.0.3",
+ "version": "6.0.4",
"title": "SimpleTOC",
"category": "layout",
"icon": "",