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 86dc5ea commit b7739aeCopy full SHA for b7739ae
src/Panel.vue
@@ -81,8 +81,6 @@
81
import md from './utils/markdown.js'
82
import panelSwitch from './PanelSwitch.vue'
83
import retriever from './Retriever.vue'
84
-
85
- const string = require('string');
86
87
export default {
88
components: {
@@ -299,7 +297,7 @@
299
297
if (this.headerContent) {
300
298
const panelHeaderText = jQuery(this.headerContent).wrap('<div></div>').parent().find(':header').text();
301
if (panelHeaderText) {
302
- this.$refs.cardContainer.setAttribute('id', string(panelHeaderText).slugify().toString());
+ this.$refs.cardContainer.setAttribute('id', String(panelHeaderText).trim().toLowerCase().replace(/\s+/g, '-'));
303
}
304
} else if (this.$refs.headerWrapper.innerHTML) {
305
const header = jQuery(this.$refs.headerWrapper.innerHTML).wrap('<div></div>').parent().find(':header');
0 commit comments