h1[data-node-view-wrapper] {
  counter-reset: h2;
}

h2[data-node-view-wrapper] {
  counter-reset: h3;
}

h3[data-node-view-wrapper] {
  counter-reset: h4;
}

h2[data-node-view-wrapper]::before {
  counter-increment: h2;
  content: counter(h2) ". ";
}

h3[data-node-view-wrapper]::before {
  counter-increment: h3;
  content: counter(h2) "." counter(h3) ". ";
}

h4[data-node-view-wrapper]::before {
  counter-increment: h4;
  content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}
