zregvart opened a new pull request, #907: URL: https://github.com/apache/camel-website/pull/907
Hugo deprecated Blackfriday Markdown renderer in favor of Goldmark which is the new default. A warning that Blackfriday will be removed in a future version is displayed when rendering the pages. To achieve the same functionality as we had with Blackfriday, as the `rel` attribute for links is not configurable, we need to add `render-link.html` partial. Other changes include enabling inline HTML (`markup.goldmark.renderer.unsafe=true`) and disabling inline CSS for syntax higlighting. We did not allow inline CSS on the production site, but in previews are not able to set HTTP headers, so the Content Security Policy header can't be set to disable inline CSS. We can set the option `markup.higlight.noClasses=false` that the inline CSS is not added to the `<code>` blocks and the styling is performed via `higlight.js`. This helps the preview to render syntax higlighted code blocks as they would be rendered on the production site. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
