Literal asterisks in markdown

Sure thing - that’s a different issue, with thankfully a simpler fix :slight_smile:

md is a tagged template literal - it’s a function (md) and a new JavaScript feature (those backticks). So, like other strings in JavaScript - if you were to create a double-quoted string, and you wanted to put double quotes in that string, you need to escape them:

x = "They said "hi" I think" // an error

// Instead you want to escape those:
x = "They said \"hi\" I think" // works

Since template strings use the backtick as their start & stop symbols, to use them inside of a markdown string, you’ll need to escape them the same, with \. For your example, it’d be like

md`
Please use \`myObjectType\` for this purpose
`
2 Likes