Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per page configuration #41

Open
TheROPFather opened this issue Jun 9, 2021 · 1 comment
Open

Per page configuration #41

TheROPFather opened this issue Jun 9, 2021 · 1 comment

Comments

@TheROPFather
Copy link

TheROPFather commented Jun 9, 2021

Is there an easy way to specify configuration on a per page level, rather than project wide?

As an example I wish to allow images on one page, but disallow them on another.

A similar idea to what was mentioned here
#7 (comment)

@TheROPFather TheROPFather changed the title Per page configuration. Per page configuration Jun 9, 2021
@TheROPFather
Copy link
Author

TheROPFather commented Jun 9, 2021

I have found a temporary solution, I do not know if this is the best way to handle this but I will post it for now.

Inside nuxt.config

markdownit: {
    runtime: true
}

Then inside your page or component.

created() {
    this.$md.disable('image')
}

Feel free to close this issue if this is the expected way to solve per page configuration. Also if required, I would be happy to make a PR to add this to the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant