zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
226 stars 52 forks source link

[API] Configurable options #447

Open viki53 opened 2 years ago

viki53 commented 2 years ago

Some options such as emojis replacement would be nice to have as options through the API.

Right now they get replaced no matter what, but I don't want/need to use a custom set of images on my website, so native emojis would be better than missing images. 🙃

Cold this (and other similar settings) become an option of the zmarkdown package?

StaloneLab commented 2 years ago

The way we currently handle options through the API is quite ZdS-specific and is likely to remain so. Although I do think it would be possible to allow deactivating a specific plugin without too much overhead, the recommended way to configure the zmarkdown package as of today is not through the API, but instead by importing it using NPM and giving it your own configuration.

However, for this specific need, it might be easy to do, and I will try to implement it in a future version.

viki53 commented 2 years ago

Thanks for your reply,

Is there any recommendation as to how I should configure that in the meantime to avoid having broken images and missing emojis on my blog?

If that helps, I'm using Ansible to publish, like ZdS is. :)