developer-content icon indicating copy to clipboard operation
developer-content copied to clipboard

Loading code in code component

Open jacobcreech opened this issue 1 year ago • 1 comments

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.

jacobcreech avatar Apr 13 '24 03:04 jacobcreech

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

nickfrosty avatar Apr 16 '24 14:04 nickfrosty