Skip to content

Not Highlighting code blocks in vue #76

Description

@CSFM93

Hi thanks for creating such an amazing library, i have tried to use it but it doesn't highlight code blocks.

The code i tried:

var HyperMD = require("hypermd");

export default {
  name: "MdEditor",
  data: () => ({
    rendered: false,
  }),

  methods: {
    render() {
      if (!this.rendered) {
        var myTextarea = document.getElementById("input-area");
        var editor = HyperMD.fromTextArea(myTextarea, {
          lineNumbers: false,
          mode: {
            name: "hypermd",
            hashtag: true, 
          },
        });
        editor.setSize(null, "900px"); // set height
      }
    },
  },
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions