UNPKG

remark-clang-format

Version:
14 lines (11 loc) 296 B
'use strict'; import formatCode from './code/format-code.js'; import formatMath from './math/format-math.js'; export default function remarkCodeFormat(options) { return function transformer(tree) { formatCode(tree); if (options && options.math) { formatMath(tree); } }; }