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.
1 parent 2dcc2a0 commit 586c3dbCopy full SHA for 586c3db
docs/index.html
@@ -161,16 +161,14 @@
161
</h${level}>`;
162
};
163
164
- const html = marked.parser(ast, {
+ return marked.parser(ast, {
165
highlight(code, lang) {
166
return hljs.highlight(lang ? lang : 'rust', code).value;
167
},
168
headerIds: true,
169
headerPrefix: '',
170
renderer,
171
});
172
- document.dispatchEvent(new Event('htmlbuilt'));
173
- return html;
174
}
175
176
created: async function() {
@@ -181,7 +179,7 @@
181
179
.filter(tag => tag.startsWith('v'));
182
180
this.versionOptions = this.versionOptions.concat(tagOptions);
183
184
- updated: function() {
+ updated() {
185
if (UrlHash === '') return;
186
this.$nextTick(() => {
187
const target = document.querySelector(`#${UrlHash}`);
0 commit comments