<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Simplemenu for Reveal.js, auto</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js/dist/reset.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js/dist/reveal.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js/dist/theme/black.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js/plugin/highlight/monokai.css">
<link rel="stylesheet" href="css/demo.css">
</head>
<body>
<div class="reveal">
<div class="menubar">
<ul class="menu"></ul>
</div>
<div class="slides">
<section name="Home">
<h1>HOME</h1>
</section>
<!-- some comment here breaks the menu (click jumps to the wrong link) -->
<section name="Biography">
<!-- some comment here is OK -->
<section>
<h2>Biography</h2>
</section>
</section>
<section name="What it does">
<section>
<h2>What it does</h2>
</section>
<section>
<p>Simplemenu can simplify HTML editing</p>
</section>
</section>
<section name="Set it up">
<section>
<h4>Set it up</h4>
<p>Set the auto-option to true.</p>
</section>
<section>
<h4>That's it!</h4>
</section>
</section>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/reveal.js/dist/reveal.js"></script>
<script src="plugin/simplemenu/simplemenu.js"></script>
<script>
Reveal.initialize({
simplemenu: { auto: true},
plugins: [
Simplemenu,
]
});
</script>
</body>
</html>
Not sure if's related though.