Hello,
I would like to convert Multimarkdown internal links to Pandoc ones,
and from reading my BBEdit manual it seems like it would be easiest to
use grep to accomplish this (that is if someone can help me with the
regular expression I would need).
Multimarkdown handles internal links like so:
Using just grep alone I don't see a way to fully do this. The closest I
could come up with is:
find: \[ ([^\]]+)\]\[\]
Replace: [ \1](#\L\1)
This will turn
[ Charging for School Activities][]
into
[ Charging for School Activities](#charging for school activities)
This still leaves the spaces th
On Aug 26, 2012, at 10:36, psilas wrote:
> I would like to convert Multimarkdown internal links to Pandoc ones
__
This is pretty quick and dirty, but it works.
Kendall's Perl is prettier though. :)
-ccs
--
Thanks very much for this Kendall, I very much appreciate it. I managed to
get to the same step as yourself with Grep in the end but couldn't manage
the dashes part.
My grep pattern is practically the same as your own:
Find:
\[(.*)\][[]]
Replace:
[\1](#\L\1\E)
I struggled a little to get th