puml-for-markdown icon indicating copy to clipboard operation
puml-for-markdown copied to clipboard

Enable using polr shortener instead tinyurl

Open mzagar opened this issue 3 years ago • 4 comments

Added an option to specify polr shortner url in which case polr shortener API will be called to shorten url instead using tinyurl.

I'd like to use polr since it's open source and am able to run it locally which allows me, together with running plantuml server locally, not to send diagrams to 3rd party services but keep everything in-house.

Quick test: ./index.js --polr-url https://demo.polr.me/

mzagar avatar Nov 05 '22 06:11 mzagar

@danielyaa5 any chance to merge/release this ? please let me know if something needs improving...

mzagar avatar Nov 22 '22 15:11 mzagar

Hi, sorry for the delay - proposed improvements implemented, please review the changes.

mzagar avatar Nov 28 '22 14:11 mzagar

Regarding why polr - please see description of this PR -- not that it is better than tinyurl, just open source and happens to be something I am already running locally for shorting urls and would not like to change by introducing tinyurl; main goal is to keep diagrams inhouse and not send them to 3rd party services.

mzagar avatar Nov 29 '22 07:11 mzagar

thanks, i will take a final pass at this soon!

danielyaa5 avatar Dec 06 '22 22:12 danielyaa5