Heading based on hierarchy

Is there anyway heading formatting is applied automatically depending on the hierarchy?

For Example:

  • First Item 1 (h1)
    • Child 1 (h2)
      • Child 2 (h3)
        • Child 3 (h4)