/* 图片居中 */
.protyle-wysiwyg[custom-img='center'] .img {
    display: block;
    margin: 0 auto;
}



/* -------------各级标题 标题自动编号----------------------- */
/* body {
    counter-reset: h1-counter 0;
} */
.protyle-wysiwyg[custom-title-num='true'],
.b3-typography[custom-title-num='true'] {
    counter-reset: h2-count 0;
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h2,
.b3-typography[custom-title-num='true'] > h2 {
    counter-reset: h3-count 0;
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h3,
.b3-typography[custom-title-num='true'] > h3 {
    counter-reset: h4-count 0;
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h4,
.b3-typography[custom-title-num='true'] > h4 {
    counter-reset: h5-count 0;
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h5,
.b3-typography[custom-title-num='true'] > h5 {
    counter-reset: h6-count 0;
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h2::before,
.b3-typography[custom-title-num='true'] > h2::before {
    display: block;
    float: left;
    font-size: 100%;
    counter-increment: h2-count;
    content: counter(h2-count) '\00A0';
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h3::before,
.b3-typography[custom-title-num='true'] > h3::before {
    display: block;
    float: left;
    font-size: 100%;
    counter-increment: h3-count;
    content: counter(h2-count) '.' counter(h3-count) '\00A0';
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h4::before,
.b3-typography[custom-title-num='true'] > h4::before {
    display: block;
    float: left;
    font-size: 100%;
    counter-increment: h4-count;
    content: counter(h2-count) '.' counter(h3-count) '.' counter(h4-count) '\00A0';
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h5::before,
.b3-typography[custom-title-num='true'] > h5::before {
    display: block;
    float: left;
    font-size: 100%;
    counter-increment: h5-count;
    content: counter(h2-count) '.' counter(h3-count) '.' counter(h4-count) '.' counter(h5-count)
        '\00A0';
}

.protyle-wysiwyg[custom-title-num='true'] > [data-node-id].h6::before,
.b3-typography[custom-title-num='true'] > h6::before {
    display: block;
    float: left;
    font-size: 100%;
    counter-increment: h6-count;
    content: counter(h2-count) '.' counter(h3-count) '.' counter(h4-count) '.' counter(h5-count) '.'
        counter(h6-count) '\00A0';
}

/* 👆标题自动编号👆 */
