Skip to content

Commit

Permalink
pkp/pkp-lib#9840 Leave only XML as supported language
Browse files Browse the repository at this point in the history
  • Loading branch information
defstat committed May 23, 2024
1 parent de3b8b5 commit e0604ad
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/components/CodeHighlighter/CodeHighlighter.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
<template>
<highlightjs
:language="language"
:code="code"
/>
<highlightjs
:language="language"
:code="code"
/>
</template>

<script>
import hljs from 'highlight.js/lib/core';
// import hljs from 'highlight.js/lib/core';
import hljs from 'highlight.js/lib/common';
import hljsVuePlugin from '@highlightjs/vue-plugin';
// Importing the language modules
import javascript from 'highlight.js/lib/languages/javascript';
import xml from 'highlight.js/lib/languages/xml';
import markdown from 'highlight.js/lib/languages/markdown';
import css from 'highlight.js/lib/languages/css';
import latex from 'highlight.js/lib/languages/latex';
// Add more languages
// A map to store language modules
const languageMap = {
javascript,
xml,
markdown,
css,
latex,
// Add more languages here
// Add more language modules imported above
};
const supportedLanguages = Object.keys(languageMap);
Expand Down

0 comments on commit e0604ad

Please sign in to comment.