gray-matter is the most widely used front matter parser in the npm ecosystem, with 6.8 million weekly downloads. Inside lib/engines.js it registers a JavaScript engine implemented with eval(). If a Markdown document starts with ---js or ---javascript, whatever sits between the delimiters is executed as JavaScript — and the caller does not have to configure anything for that to happen.
9/14/26About 4 min
