Closed SwinX closed 7 years ago
There can also be an option in docpub.config
to enable to enable or disable the highlighter:
rendering: {
highlight: true || false
}
This will disable both the highlighter in general and adding the link
tag.
I have found out that Zendesk will strip out all <link>
and <style>
tags in the body of an article and it even strips out inline style
attributes on tags. The tags can be allowed by enabling "Display unsafe content":
https://support.zendesk.com/hc/en-us/articles/203664326-Customizing-the-Help-Center#id_gvg_txt_2s
However, allowing unsafe content also allows <script>
tags, which could be a security issue.
This means our only choice might be to leave out style automation, and instead include instructions in the documentation on how to add the stylesheet to the Zendesk template.
I agree that code highlighting is not a good reason to enable unsafe content in general. Suggest following:
rendering: {
highlight: true || false
}
@corycaywood @elliatab what do you think?
Yep, I think that's the best we can do.
Highlight.js markup is being applied, but css is missing from generated HTML. Issued can be fixed in several ways:
link
tag pointing to the css deployed on public CDN