obsidian-wordpress icon indicating copy to clipboard operation
obsidian-wordpress copied to clipboard

[Feature Request] Parse out certain text before publishing

Open profucius opened this issue 2 years ago • 0 comments

Hi there, great plugin. I have an idea for improving the publishing of text from Obsidian to Wordpress.

As of now, when I publish a note which has filelinks on words, such as [[Filelink]] the text is literally sent to Wordpress as that. I would like to have those [[ ]] brackets removed from the Wordpress post, as they do not serve any purpose there.

Similarly, if I have any formatting text, such as == as a text highlighter, I would like to prevent that text from being sent to Wordpress too.

As a basic implementation, perhaps an toggle option to strip text down to plain text. For an advanced implementation (in the future), I can imagine having text be transformed into HTML. For example, the == could be converted to <span style="background:#xxxxx"> for making it an HTML highlight. It would translate the second == at the end of the highlighted text into a </span> end html code.

This could apply to any other Markdown text formatting as well as Obsidian-Markdown text formatting. These are just examples.

For the sake of time however, as stated above, a feature to simply remove certain characters would be nice. Perhaps this could be implemented as a text box in the plugin settings in Obsidian, which allows the user to enter symbol(s) on each new line which the plugin will first remove before sending to Wordpress.

What do you think?

profucius avatar Feb 17 '23 00:02 profucius