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

Allow configuration to include custom JS and CSS file(s) #50

Open
alienman5k opened this issue Sep 28, 2024 · 1 comment
Open

Allow configuration to include custom JS and CSS file(s) #50

alienman5k opened this issue Sep 28, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@alienman5k
Copy link

It would be really helpful to allow users to be able to include their own JS files to add support to the previewer, one example I am thinking is to be able to render diagrams using something like mermaid.js

Maybe adding some configuration where we can include a list of JS files during the setup?

{
  md = {
    js = { 'file1.js', 'file2.js' }
  },
  asciidoc = {
    js = { 'file1.js', 'file2.js' }
  }
}
@brianhuster brianhuster added the enhancement New feature or request label Sep 29, 2024
@brianhuster
Copy link
Owner

With the latest update, you can now embed html in markdown, which allow you to use external js and css files, as long as they are in server root (run :chechhealth livepreview to see path to server root, by default it is :pwd).

I know it is not exactly what you want, but I hope that give you a workaround way.

@brianhuster brianhuster closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@brianhuster brianhuster changed the title Allow configuration to include custom JS file(s) Allow configuration to include custom JS and CSS file(s) Jan 12, 2025
@brianhuster brianhuster reopened this Jan 12, 2025
@brianhuster brianhuster added this to the Need owners milestone Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants