export class MdCol {
constructor(sectionName) {
this.data = "";
this.sectionName = sectionName;
this.matchRegex = new RegExp(
`^([ \\t]*)\\n[\\s\\S]*?\\n`,
`m`
);
}
log(...s) {
this.data += s.join("") + "\n";
}
apply(s) {
return s.replace(this.matchRegex, (m, $1) => {
return (
`\n` +
`\n\n` +
this.data +
`\n\n`
).replace(/^/gm, $1);
});
}
}
export function ImgX(path, w) {
const widthProp = w ? ` width=${w}` : ``;
return (
`
` +
`
`
);
}