On 07/17/2019, at 12:49, Mark C. mailto:cran...@gmail.com>>
wrote:
> I'm fine tuning some Dokuwiki markdown …
Hey Mark,
Is it likely that you'll have more than one reference per page?
If so then you'll really need a scripted solution.
If not then Roland's regex might work for you.
--
Best
Hi Mark,
first answer: yes, coding a script would be the natural solution.
But. If you make a lot of assumptions, something like this would work:
search:
(?s)\[(\d+)\](.+)\1(.+?)\\+
replace:
((\3)) \2
breakdown:
(?s) = let the dot include line breaks
\[(\d+)\] = search for a number in brackets
Hi,
I'm fine tuning some Dokuwiki markdown. In the body of the text there are
references to footnotes that look like this:
Blah blah blah [12]
And at the end of the document there's a footnote that looks like this:
12 Crassus and Antonius.\\
That's all fine and it works, but it would be even