We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00a281e + 0638f33 commit 91c5602Copy full SHA for 91c5602
addon/components/on-this-page.hbs
@@ -5,7 +5,7 @@
5
<ul>
6
{{#each @toc as |toc|}}
7
<li>
8
- <a href="#{{toc.id}}">{{toc.text}}</a>
+ <a href="#{{this.headerPrefix}}{{toc.id}}">{{toc.text}}</a>
9
</li>
10
{{/each}}
11
</ul>
addon/components/on-this-page.js
@@ -0,0 +1,6 @@
1
+import Component from '@glimmer/component';
2
+import config from 'ember-get-config';
3
+
4
+export default class OnThisPageComponent extends Component {
+ headerPrefix = config?.showdown?.prefixHeaderId ?? '';
+}
0 commit comments