hluk / copyq-commands

Useful commands for CopyQ clipboard manager.
331 stars 73 forks source link

Add "Convert Markdown to ..." command #25

Closed pbodnar closed 4 years ago

pbodnar commented 4 years ago

Hi, I was looking for a way of how to convert my "nicely formatted" Markdown-like notes to "not so nice" Jira markup comments. And this new command that I would like to share is the result.

It uses the mistletoe project that according to my research was the only one that contained at least a basically working Markdown-to-Jira converter. I only had to fix it a little bit to be really working (see PR #100). I see there is an alternative project called mistune that seems to be pretty similar while also more maintained, but I didn't have time to write a converter for it from scratch.

So the installation instructions (see README.md) are little bit more complicated than I would like, but hopefully still within "limits". Can you please check and let me know if it works for you?

hluk commented 4 years ago

Ah, yes, the infamous Jira formatting -- very annoying. I just leave my Jira comments in markdown and don't bother fixing them anymore. :)

pbodnar commented 4 years ago

Ah, yes, the infamous Jira formatting -- very annoying. I just leave my Jira comments in markdown and don't bother fixing them anymore. :)

Yeah, sometimes it's easier to copy the notes to Jira just as unformatted text. :)

But I was also thinking about a future possibility to convert to a Wiki syntax, provided that our company won't decide to use Markdown syntax instead, but I don't expect that in the nearest future... ;)

hluk commented 4 years ago

Thanks. I hope your fix in mistletoe gets merged soon.

pbodnar commented 4 years ago

Thank you!

pbodnar commented 3 years ago

For anyone interested, I made another two fixes within the mistletoe's fix-jira-renderer branch, so that: