diff --git a/aio/tools/transforms/post-process-package/processors/post-process-html.js b/aio/tools/transforms/post-process-package/processors/post-process-html.js index 5f8f837bf5..cd455db85c 100644 --- a/aio/tools/transforms/post-process-package/processors/post-process-html.js +++ b/aio/tools/transforms/post-process-package/processors/post-process-html.js @@ -1,4 +1,5 @@ const rehype = require('rehype'); +const {mark} = require('./translator'); /** * @dgProcessor postProcessHtml @@ -35,7 +36,7 @@ module.exports = function postProcessHtml(log, createDocMessage) { .forEach(doc => { try { vFile = engine.processSync(doc.renderedContent); - doc.renderedContent = vFile.contents; + doc.renderedContent = mark(vFile.contents); vFile.messages.forEach(m => { log.warn(createDocMessage(m.message, doc)); }); diff --git a/aio/tools/transforms/remark-package/services/translator.js b/aio/tools/transforms/post-process-package/processors/translator.js similarity index 100% rename from aio/tools/transforms/remark-package/services/translator.js rename to aio/tools/transforms/post-process-package/processors/translator.js diff --git a/aio/tools/transforms/remark-package/services/translator.mocha.js b/aio/tools/transforms/post-process-package/processors/translator.mocha.js similarity index 100% rename from aio/tools/transforms/remark-package/services/translator.mocha.js rename to aio/tools/transforms/post-process-package/processors/translator.mocha.js diff --git a/aio/tools/transforms/remark-package/services/renderMarkdown.js b/aio/tools/transforms/remark-package/services/renderMarkdown.js index ec13d23239..4da595c2f5 100644 --- a/aio/tools/transforms/remark-package/services/renderMarkdown.js +++ b/aio/tools/transforms/remark-package/services/renderMarkdown.js @@ -3,8 +3,6 @@ const html = require('remark-html'); const code = require('./handlers/code'); const mapHeadings = require('./plugins/mapHeadings'); -const {mark} = require('./translator'); - /** * @dgService renderMarkdown * @description @@ -26,7 +24,7 @@ module.exports = function renderMarkdown() { .use(mapHeadings(headingMap)) .use(html, { handlers: { code } }); - return mark(renderer.processSync(content).toString()); + return renderer.processSync(content).toString(); }; /**