saberland/saber
$40.00Solve someone else's bounty request by clicking on it and completing the funding to earn additional credits



Do you want to work on this issue?
You can request for a bounty in order to promote it!
1 active bounty request
Template feature: replace tags with Vue components #472
egoist posted onGitHub
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of Saber. -->
Feature request
<!-- Please ask questions via following several ways. -->
<!-- https://chat.saber.land/ -->
<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->
In:
## hello
this is a test
With saber-config.js
:
module.exports = {
template: {
tags: {
h1: {
component: 'md-heading',
// Optionally map token to props
props: token => ({ level: parseInt(token.tag) })
}
}
}
}
Out:
<md-heading :level="2">hello</md-heading>
<p>this is a test</p>
What problem does this feature solve?
You like the simplicity of Markdown but also want the power of Vue components.