Skip to content

feat: custom css option.#21

Open
y2w8 wants to merge 1 commit into
selimacerbas:mainfrom
y2w8:main
Open

feat: custom css option.#21
y2w8 wants to merge 1 commit into
selimacerbas:mainfrom
y2w8:main

Conversation

@y2w8
Copy link
Copy Markdown

@y2w8 y2w8 commented May 2, 2026

Add custom CSS support

Moves the plugin's default styles out of index.html into a dedicated assets/style.css file.
On start, the stylesheet is inlined into the generated index.html via a <style> tag.
A new custom_css config option lets users point to their own stylesheet:

require("markdown_preview").setup({
  -- Leave it empty for default style only
  custom_css = "~/my-styles.css",
})

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

Successfully merging this pull request may close these issues.

1 participant