1-- docusaurus_code_blocks.lua 2-- Copyright (C) 2024 Posit Software, PBC 3 4local code_block = require('docusaurus_utils').code_block 5 6return { 7 traverse = "topdown", 8 DecoratedCodeBlock = function(el) 9 return nil, false -- defer to the custom renderer later in the pipeline 10 end, 11 CodeBlock = function(el) 12 return code_block(el, el.attr.attributes["filename"]) 13 end, 14} 15 16