MCPcopy Create free account
hub / github.com/decaporg/decap-cms / codeBlockRaw

Function codeBlockRaw

cypress/e2e/markdown_widget_code_block_spec.js:45–59  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

43});
44
45function codeBlockRaw(content) {
46 return ['```', ...stripIndent(content).split('\n'), '```']
47 .map(
48 line => oneLineTrim`
49 <div>
50 <span>
51 <span>
52 <span>${line}</span>
53 </span>
54 </span>
55 </div>
56 `,
57 )
58 .join('');
59}
60
61function codeBlock(content) {
62 const lines = stripIndent(content)

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected