martinkorelic / joplin-plugin-spoilers

Joplin plugin for creating inline spoilers and spoiler blocks.
29 stars 3 forks source link

Feature Request: Option to change markdown used for inline spoilers #8

Open deepspaceaxolotl opened 2 years ago

deepspaceaxolotl commented 2 years ago

Would it be possible to have an option to change %% to something else? As an example, I'm moving a lot of notes from Discord messages into Joplin and Discord uses || for its inline spoilers, so being able to just change a setting to have that work for spoilers would save a ton of work, and given spoiler text isn't standardised in the Markdown spec yet, this would likely be useful for note compatibility with other software, too.

deepspaceaxolotl commented 2 years ago

(Thanks for all the work on this plugin, by the way, it's very useful and very appreciated :). )

martinkorelic commented 2 years ago

Something like this would be harder to achieve, as it is already standardised as %% for a lot of Joplin users and changing it like that would ruin their current notes using that configuration. The only thing is can suggest is to use search & replace for that.

deepspaceaxolotl commented 2 years ago

Oh, my suggestion was not to change it to || for everyone, but to keep %% as the default and just have an option to change it to something else if wanted. Don't know how difficult it would be to code, though, if the symbol used is in a variable that could be modified like that.

deepspaceaxolotl commented 1 year ago

I don't think I'm experienced enough with building Joplin plugins to code in a setting for this, but I've tried to recompile the plugin with || instead of %% (and | instead of %, where necessary) for my own personal use, however it doesn't seem to be working. When I install the newly compiled plugin, it still works like the %% version.

Do you have any intuition for what might be wrong here? A nudge in the right direction would be very appreciated.

deepspaceaxolotl commented 3 months ago

I've not been able to get my modification to work. Having an option to change the markdown used would be very helpful, I just don't know how to do that, myself, so I'd appreciate any help!