diff --git a/aio/tools/transforms/remark-package/services/handlers/code.js b/aio/tools/transforms/remark-package/services/handlers/code.js index a208704e93..d4a07e442a 100644 --- a/aio/tools/transforms/remark-package/services/handlers/code.js +++ b/aio/tools/transforms/remark-package/services/handlers/code.js @@ -4,7 +4,9 @@ module.exports = function code(h, node) { var value = node.value ? ('\n' + node.value + '\n') : ''; var lang = node.lang && node.lang.match(/^[^ \t]+(?=[ \t]|$)/); - var props = {}; + var props = { + linenums: 'false' + }; if (lang) { props.language = lang; diff --git a/aio/tools/transforms/remark-package/services/renderMarkdown.spec.js b/aio/tools/transforms/remark-package/services/renderMarkdown.spec.js index 973a9c8008..12e41dbe5d 100644 --- a/aio/tools/transforms/remark-package/services/renderMarkdown.spec.js +++ b/aio/tools/transforms/remark-package/services/renderMarkdown.spec.js @@ -88,7 +88,7 @@ describe('remark: renderMarkdown service', () => { '```'; const output = renderMarkdown(content); expect(output).toEqual( - '\n' + + '\n' + ' class MyClass {\n' + ' method1() { ... }\n' + ' }\n' +