ohnonot 00a325d5ee git-check-20220605-0747 | hace 2 años | |
---|---|---|
README.md | hace 3 años | |
md2bb-existing.sh | hace 2 años |
You like to post on forums, but don't like typing out BBCode or pressing toolbar buttons on a javascript editor?
For example, in a browser text entry window:
md2bb-existing.sh
It takes input from a pipe and prints to STDOUT.
$ cat README.md | ./md2bb-existing.sh
Not all BBCOde is implementable in pure, simple markdown. Suitable markdown extensions exist but are hardly less cumbersome to type than BBCode.
Typed BBCode will be left as is.
Some output might not be permissible in some BBCode implementations:
[h]
(header) is not known by allxclip
markdown
(I use the discount variant)sed
perl
with the perl-html-parser
class, providing the HTML::Entities
moduleOptional:
xdotool
(without it, the script won't automatically paste, just copy to the clipboard)This used to be a larger repo containing a failed rewrite of the original markdown perl script. In its current state it hardly justifies it's own repo anymore, but works much better!