Closed yhatt closed 2 years ago
Framework users can control id attribute for each slides by setting anchor constructor option.
id
anchor
// Set page number as anchor (id attribute) new Marpit({ anchor: true }) // <section id="1"> new Marpit({ anchor: false }) // <section> // Custom anchor: <section id="page-1"> new Marpit({ anchor: (pageIndex) => `page-${pageIndex + 1}` })
Framework users can control
id
attribute for each slides by settinganchor
constructor option.