PLT-5913: Remove id from heading markdown compilation (#5782)
Id for heading markdown is unnecessary as we didn't attach any style/effect on that id, and it also introduce duplicate id. So remove it from heading markdown generatiing.
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
efcf78a4f3
Коммит
94b4aa082c
@@ -156,9 +156,8 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
||||
return out;
|
||||
}
|
||||
|
||||
heading(text, level, raw) {
|
||||
const id = `${this.options.headerPrefix}${raw.toLowerCase().replace(/[^\w]+/g, '-')}`;
|
||||
return `<h${level} id="${id}" class="markdown__heading">${text}</h${level}>`;
|
||||
heading(text, level) {
|
||||
return `<h${level} class="markdown__heading">${text}</h${level}>`;
|
||||
}
|
||||
|
||||
link(href, title, text) {
|
||||
|
||||
Ссылка в новой задаче
Block a user