Skip to content

Cannot specify style of title, so the style of the first header is always "setext" even though the default style of other headers is "atx" #111

@tonur

Description

@tonur

Describe the bug
The title is always "setext" style when generated as header, even though the default behavior of all other headers is the "atx" style.

To Reproduce

mdfile = MdUtils(file_name="test-file", title="My title")
mdfile.new_header(level=2, title="My header")
mdfile.create_md_file()

This will create

My title
=======================================

## My header

Expected behavior
That the default style of all headers was the same, or if it was able to set the style of the title header.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version: 24.04.1 LTS

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions