Skip to content

How to create global vue variables in html and make it readable on .md files? #1252

Description

@lucassimines

How can I make my markdown files to get my Vue variables that I registered in my .html file?

I don't want to register the script inside .md files, is it possible to register in .html?

<script>
new Vue({
el: '#main',
data: {
appName: '<b>' + $docsify.name + '</b>',
fullImg: '<b>1.920 x 1.080 px</b>. Formato: <b>.jpg</b> com <b>72 dpi</b>',
mobileImg: '<b>1.080 x 1.920 px</b>. Formato: <b>.jpg</b> com <b>72 dpi</b>',
squareImg: '<b>1.200 x 1.200 px</b>. Formato: <b>jpg</b> com <b>72 dpi</b>'
}
})
</script>

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

    bugconfirmed as a bugquestionvuejsrelated to Vue.js

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions