@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
17 lines (14 loc) • 544 B
JavaScript
;
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// src/lib/inlineCodeBlock.ts
var zws = String.fromCharCode(8203);
function inlineCodeBlock(content) {
content = content.replace(/ /g, "\xA0");
content = content.replace(/`/g, `\`${zws}`);
return `\`${content}\``;
}
__name(inlineCodeBlock, "inlineCodeBlock");
exports.inlineCodeBlock = inlineCodeBlock;
//# sourceMappingURL=inlineCodeBlock.cjs.map
//# sourceMappingURL=inlineCodeBlock.cjs.map