mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-19 06:38:45 -05:00
19 lines
389 B
JavaScript
19 lines
389 B
JavaScript
module.exports = function rawRender (hexo, text, options = {}) {
|
|
const { engine } = options
|
|
|
|
// renders using the low level hexo methods
|
|
// which enables us to nest async tags
|
|
// in renderable strings
|
|
return hexo.extend.tag.render(text, this)
|
|
.then((text) => {
|
|
if (!engine) {
|
|
return text
|
|
}
|
|
|
|
return hexo.render.render({
|
|
text,
|
|
engine,
|
|
})
|
|
})
|
|
}
|