Skip to content

Commit

Permalink
fix: only load CodeBlock extension without CodeBlockLowlight
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud authored and backportbot-nextcloud[bot] committed Jun 19, 2023
1 parent fd50c15 commit 89ef3bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/PlainTextReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
</template>

<script>
/* eslint-disable import/no-named-as-default */
import CodeBlock from '@tiptap/extension-code-block'
import escapeHtml from 'escape-html'
import BaseReader from './BaseReader.vue'
import { PlainText } from './../extensions/index.js'
import escapeHtml from 'escape-html'
export default {
name: 'PlainTextReader',
Expand All @@ -37,7 +39,7 @@ export default {
renderHtml(content) {
return '<pre>' + escapeHtml(content) + '</pre>'
},
extensions: () => [PlainText],
extensions: () => [PlainText, CodeBlock],
},
props: {
Expand Down

0 comments on commit 89ef3bc

Please sign in to comment.