Sheesh I finally figured it out. I needed to use the .wiki()
function to append it to the current output buffer. For anyone that stumbles upon this later, this is what my macro looks like:
Macro.add("phone", {
handler: function () {
// generate the HTML for the phone
var phone = createPhone(this.args[0], this.args[1], this.args[2]);
$(this.output).wiki(phone.innerHTML);
},
});
Takeaways: (for anyone that stumbles here in the future)
.wiki()
appends it to the current inline buffer during runtime- Must use
.innerHTML
onphone
since it apparently returns an object. Otherwise it’ll just show up inline as[object HTMLDivElement]