Hi progzmaster,
there is no need to develop such an option, at it is one of the basic functions in DokuWiki and it works without an additional plugin.
Have a look at the option useheading in the configuration.
For further information, the page
https://www.dokuwiki.org/config:useheading may also be helpful.
Greetings,
Christoph