fix: anchor tag safety (via #4789)

* v3.17.6

* release(3.17.6): rebuild dist

* add failing tests

* fix Link component

* fix OnlineValidatorBadge component

* switch from <a> to <Link> in operation components

* make Markdown inputs safe

* use Link component in Info block, for target safety

* add eslint rule for unsafe `target` usage
This commit is contained in:
kyle
2018-08-04 00:54:03 -07:00
committed by GitHub
parent fe5b2344c7
commit dd3afdc456
15 changed files with 354 additions and 31 deletions

View File

@@ -7,6 +7,8 @@ import { sanitizer } from "core/components/providers/markdown"
const parser = new Remarkable("commonmark")
parser.set({ linkTarget: "_blank" })
export const Markdown = ({ source, className = "" }) => {
if ( source ) {
const html = parser.render(source)