package
0.2.0
Repository: https://github.com/szkiba/mdcode.git
Documentation: pkg.go.dev

# README

hello

An example of how to use mdcode

In this example, the code blocks contain entire files. The test code required for testing is in invisible code blocks.

If you look at the source of this document, you can see how the embedding is done.

JavaScript

console.log("Hello, Testable World!")

go

package main

import "fmt"

func main() {
	fmt.Println("Hello, Testable World!")
}

Tasks

To try mdcode here are some easy tasks

extract

You can extract the example code and the test code using the following command:

mdcode extract

test

After extractiong, you can run the test using the following commands:

go test
node --test

update

After modifying the files, you can update the code blocks in the document using the following command:

mdcode update