Loading code in code component
jacobcreech opened this issue · comments
Jacob Creech commented
Problem
For writing code within markdown, we're often writing it directly in it. This causes problems if we want to write tests on it later down the line.
Proposed Solution
Allow loading code from a separate file, much like vuepress's @/code
so we can write a bunch of nightly tests later to check the up-to-dateness of our code.
Nick Frostbutter commented
I love this idea. I have been toying with the idea of the inverse: being able to test the code within a code block that is directly in the markdown. But I think this vuepress style will be even easier to implement