mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
8 lines
220 B
JavaScript
8 lines
220 B
JavaScript
#!/usr/bin/env node
|
|
const { block, convert } = require("./md-toml");
|
|
|
|
convert(({ body, frontmatter }) => ({
|
|
description: frontmatter.description,
|
|
prompt: block(body.replace(/\$ARGUMENTS\b|\$\d+/g, "{{args}}")),
|
|
}));
|