Well I am definitely on the right track
Well, I am definitely on the right track hahaha. This is exactly the approach I took.
10 Replies
can you share some code and the error?
Yep, I think the problem I'm having is in the Vue file
This is midstate. It's a bit messy
This is the reference I'm using from Mathpix
https://github.com/Mathpix/mathpix-markdown-it#using-mathpix-markdown-it-in-web-browsers
GitHub
GitHub - Mathpix/mathpix-markdown-it: Markdown rendering + Latex ex...
Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community - GitHub - Mathpix/mathpix-markdown-it: Markdown rendering + Latex extras (equati...
I have made my own custom components with Vue before, but I am not a Javascript developer
I think this looks good, but you need https://stackoverflow.com/questions/63361590/vue-js-v-html-directive-renders-raw-html for the html
Stack Overflow
Vue JS v-html directive renders raw html
Here is how my component looks like
<template>
<div v-html="someHtml"></div>
</template>
<script>
export default {
name: "test",
props: {...
I tried adding the
v-html
, it it's still throwing an error.
The error I'm getting is on the browser side. I see this error in the console:
Here is the latest version of my files.
Alright, I have a "functional" piece of code. I don't think it's nearly as robust as what you have for echarts. The problem I was having is that the requirejs code seemed to be returning null instead of a module. This seems to work and vastly simplified the code: