-
Issue DescriptionI'm using 'vite-plugin-vue-markdown' to parse the Markdown file (Which has the contents '`import.meta.env`') as a Vue component.
Reproduce
|
Beta Was this translation helpful? Give feedback.
Answered by
NicChoi
Jun 1, 2023
Replies: 1 comment 1 reply
-
This is expected, see https://vitejs.dev/guide/env-and-mode.html#production-replacement |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it is valid to add a tag
<wbr>
to break the stringimport.meta.env
-->import.meta<wbr>.env
.But when I want to mark the it as a code block (`import.meta<wbr>.env`), the lib
vite-plugin-vue-markdown
will not parse the tag<wbr>
.And my solution is change the code char "``" to the HTML tag
<code></code>
(<code>import.meta<wbr>.env<code>
)