Closed dungxibo123 closed 2 years ago
In the description of auto_ids
it says that this is for generating ID values for HTML header tags, i.e. <h1>
up to <h6>
. This has nothing to do with modifying the structural output like you thought it would, i.e. it doesn't add any <section>
tag nor any other tag; it just generates the header ID.
Apart from this option meaning something different than you thought, there is also the problem with determining your "desired content": This cannot be done by kramdown since it can't know when your section ends.
Consider a simple markdown case
My rendered output is
But I want it turned into
Following the document here I set my
_config.yml
file intoSo I thought my desire content will be wrapped by the
section
tag, but the rendered html did not change. Am I misunderstanding the document content or I need set other option to achieve desire output.Thanks