Skip to content

Commit

Permalink
add an export, it's good module etiquette
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Feb 27, 2019
1 parent 3d1ce1f commit d7add7c
Showing 1 changed file with 41 additions and 38 deletions.
79 changes: 41 additions & 38 deletions index.js
Expand Up @@ -89,54 +89,57 @@ let bear = function bear (showdown) {
type: "lang",
regex: /(^---$)/g,
replace: () => "<hr>"
}
},
]
})
}

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
`)
}

0 comments on commit d7add7c

Please sign in to comment.