s{(?m)^=BEGIN_SAMPLE\s+(.*)$}{->> /.sample-column .sample-pic [[!img/$1.png| {{.width-100 img/$1.png}}]] ->> /.sample-desc }g s{(?m)^=END_SAMPLE\s+(.*)$}{ [[!stl/$1.stl|.sample $1.stl]] -<< 2 }g s{(?m)^=SAMPLES}{->> /.empty} s{(?m)^=NEXT-ROW=*}{ .clear-both .next-sample }g