Figures, Tables etc often have a unique caption line eg Figure N:
Description...

After extracting text I used this workaround to post-process the markdown
files on Win10 with GNU sed (hence ^^):

======= display proposed changes
for %f in (*.md) do sed -n 's/\(^^Figure \)\([0-9]\+\)\(\:
.*\)/\n![](%~nf-\2.png)\n\1\2\3/p' %f

======= change in-place
for %f in (*.md) do sed -i 's/\(^^Figure \)\([0-9]\+\)\(\:
.*\)/\n![](%~nf-\2.png)\n\1\2\3/' %f

Reply via email to