diff --git a/src/main.ts b/src/main.ts index 9242b27..c9932fa 100644 --- a/src/main.ts +++ b/src/main.ts @@ -458,6 +458,14 @@ export default class DiceRollerPlugin extends Plugin { rep.replace(/([\*\[\]])/g, "\\$1") ) .split("\n"); + } else { + splitContent = splitContent + .join("\n") + .replace( + `\`${full}\``, + rep + ) + .split("\n"); } fileContent.splice(