mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
cea4eee18a
commit
1a7ec6aea2
|
@ -135,9 +135,9 @@ export const activate: ActivationFunction<void> = (ctx) => {
|
|||
linkify: true,
|
||||
highlight: (str: string, lang?: string) => {
|
||||
if (lang) {
|
||||
return `<code class="vscode-code-block" data-vscode-code-block-lang="${markdownIt.utils.escapeHtml(lang)}">${markdownIt.utils.escapeHtml(str)}</code>`;
|
||||
return `<div class="vscode-code-block" data-vscode-code-block-lang="${markdownIt.utils.escapeHtml(lang)}">${markdownIt.utils.escapeHtml(str)}</div>`;
|
||||
}
|
||||
return `<code>${markdownIt.utils.escapeHtml(str)}</code>`;
|
||||
return markdownIt.utils.escapeHtml(str);
|
||||
}
|
||||
});
|
||||
markdownIt.linkify.set({ fuzzyLink: false });
|
||||
|
@ -281,6 +281,7 @@ export const activate: ActivationFunction<void> = (ctx) => {
|
|||
pre code {
|
||||
line-height: 1.357em;
|
||||
white-space: pre-wrap;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li p {
|
||||
|
|
Loading…
Reference in a new issue