Skip to content

Title size decrease in nested subsections without a parent title #234

Description

@traut

Description

In the nested sub-sections the title gets shifted even when there is no title in the parent section. This creates gaps in title sizes, breaking formatting.

Steps to Reproduce

This template:

document "test_doc" {

  title = "AAA"

  section {
    title = "BBB"

    section {
      # No title

      section {
        title = "CCC"
      }
    }
  }
}

renders into

# AAA

## BBB

#### CCC

instead of correct

Expected Behavior

Expected gradual title descend:

# AAA

## BBB

### CCC

Actual Behavior

$ fabric --version
fabric version 0.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions