diff --git a/index.js b/index.js index d37b698..a1b153e 100644 --- a/index.js +++ b/index.js @@ -89,54 +89,57 @@ let bear = function bear (showdown) { type: "lang", regex: /(^---$)/g, replace: () => "
" - } + }, ] }) } -if (process.env.NODE_ENV == "test") { - let showdown = require("showdown") - bear(showdown) +module.exports = bear - let md = new showdown.Converter() +// { +// let showdown = require("showdown") +// bear(showdown) - md.useExtension("polar-bear") +// let md = new showdown.Converter() - md.makeHtml(` -# abebananachee ๐Ÿ‘ฆ๐ŸŒ๐Ÿ‘ง -/serves 1 abe ๐Ÿ‘ฆ and 1 chee ๐Ÿ‘ง/ +// md.useExtension("polar-bear") -## ingredients -### the banana ๐ŸŒ -* a banana ๐ŸŒ -### the ice cream ๐Ÿจ -* 3 scoops ๐Ÿฅ„ Neapolitan ice cream ๐Ÿจ (1 scoop ๐Ÿฅ„ each flavour) -### the toppings -#### sweet nut ๐Ÿฅœ -* a handful of peanuts ๐Ÿฅœ -* a stick of Kerrygoldโ„ขยฉยฎ butter -* 50ml honey ๐Ÿฏ (preferably w/ a hint of cinnamon) -#### chocolate ๐Ÿซ sauce -* 20g chocolate ๐Ÿซ -* 15ml milk ๐Ÿฅ› -* 15ml cream +// console.log(md.makeHtml(` +// # abebananachee ๐Ÿ‘ฆ๐ŸŒ๐Ÿ‘ง +// /serves 1 abe ๐Ÿ‘ฆ and 1 chee ๐Ÿ‘ง/ ---- +// ## ingredients +// ### the banana ๐ŸŒ +// * a banana ๐ŸŒ +// ### the ice cream ๐Ÿจ +// * 3 scoops ๐Ÿฅ„ Neapolitan ice cream ๐Ÿจ (1 scoop ๐Ÿฅ„ each flavour) +// ### the toppings +// #### sweet nut ๐Ÿฅœ +// * a handful of peanuts ๐Ÿฅœ +// * a stick of Kerrygoldโ„ขยฉยฎ butter +// * 50ml honey ๐Ÿฏ (preferably w/ a hint of cinnamon) +// #### chocolate ๐Ÿซ sauce +// * 20g chocolate ๐Ÿซ +// * 15ml milk ๐Ÿฅ› +// * 15ml cream -## directions -1. ::Slice:: the banana ๐ŸŒ a single /longways/ _cute_ with the blade of a handleless knife and put it in the bowl ๐Ÿฅฃ. You only own one bowl ๐Ÿฅฃ, so use that one. -2. Scoop a scoop ๐Ÿฅ„ of choco ๐Ÿซ, a scoop ๐Ÿฅ„ of vanillum and a scoop ๐Ÿฅ„ of strawberring ๐Ÿ“ into the split of banana ๐ŸŒ -3. To a -hot pot- add the butter, the honey ๐Ÿฏ and the peanuts ๐Ÿฅœ and cook them til the honey ๐Ÿฏ cronch -4. Sprinkle the nuts ๐Ÿฅœ atop the ice cream ๐Ÿจ and banana ๐ŸŒ -5. Melt the chocolate ๐Ÿซ and milk ๐Ÿฅ› and cream together, then pour over the nuts ๐Ÿฅœ -6. Yim yim yim, zip zip zip: *eat*. +// --- -- todo -- gotta run fast -+ gotta be done +// ## directions +// 1. ::Slice:: the banana ๐ŸŒ a single /longways/ _cute_ with the blade of a handleless knife and put it in the bowl ๐Ÿฅฃ. You only own one bowl ๐Ÿฅฃ, so use that one. +// 2. Scoop a scoop ๐Ÿฅ„ of choco ๐Ÿซ, a scoop ๐Ÿฅ„ of vanillum and a scoop ๐Ÿฅ„ of strawberring ๐Ÿ“ into the split of banana ๐ŸŒ +// 3. To a -hot pot- add the butter, the honey ๐Ÿฏ and the peanuts ๐Ÿฅœ and cook them til the honey ๐Ÿฏ cronch +// 4. Sprinkle the nuts ๐Ÿฅœ atop the ice cream ๐Ÿจ and banana ๐ŸŒ +// 5. Melt the chocolate ๐Ÿซ and milk ๐Ÿฅ› and cream together, then pour over the nuts ๐Ÿฅœ +// 6. Yim yim yim, zip zip zip: *eat*. -#special kind of hashtag# +// - todo +// - gotta run fast +// + gotta be done + +// #special kind of hashtag# + +// #recipe #recipe/banana +// `)) +// } -#recipe #recipe/banana - `) -}