In Innokodakademija, you can surround text with asterisks, double asterisks, underscores and tildes to add formatting to certain words.
Complete the function markdown() so it takes a symbol as input, and returns a function which applies that formatting to a given word in a given sentence.
italicise = markdown("*")
italicise("Hello there!", "Hello") ➞ "*Hello* there!"
italicise("The tale of the two sparrows", "the") ➞ "*The* tale of *the* two sparrows"
italicise("Include punctuation!", "punctuation") ➞ "Include *punctuation!*"
inline = markdown("`")
inline("Remember to return as a boolean value.", "boolean") ➞ "Remember to return as a `boolean` value."
inline("I want you to create the class Programmer...", "PROGRAMMER") ➞ "I want you to create the class `Programmer...`"
inline("Do not forget to return the value", "return") ➞ "Do not forget to `return` the value"
italicise example #3).?!.