koca / vue-prism-editor

A dead simple code editor with syntax highlighting and line numbers. 3kb/gz
https://prism-editor.netlify.com
MIT License
751 stars 84 forks source link

Using Markdown #104

Closed jolo-dev closed 2 years ago

jolo-dev commented 3 years ago

Hi, is the editor Javascript only? I have trouble using Markdown with it. Basically, I replaced js with markdown:

import 'prismjs/components/prism-markdown';
...
methods: {
      highlighter(code) {
        return highlight(code, languages.markdown); // languages.<insert language> to return html with markup
      },
    },
...

However, Javascript from the README seems to work.

koca commented 2 years ago

Hey! no, you can use all languages supported by prismjs.