/**
 * Prevent Markdown formatting
 * @see {@link https://pandoc.org/chunkedhtml-demo/8.11-backslash-escapes.html}
 */
export function escapeMarkdown(answer) {
  const punctuation = ['`', "'", '*', '_', '{', '}', '[', ']', '(', ')', '#', '+', '-', '.', '!'];
  for (const character of punctuation) {
    answer = answer.toString().replaceAll(character, `\\${character}`);
  }
  return answer;
}
export const addClassOptionIfNone = (options, className) => {
  options.classes ??= className;
};
//# sourceMappingURL=index.js.map