-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add disable_html_sanitization frontmatter option (#114)
- Loading branch information
1 parent
06641e4
commit 0a43328
Showing
7 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
// Copyright 2022 the Deno authors. All rights reserved. MIT license. | ||
|
||
export { serveDir } from "https://deno.land/std@0.171.0/http/file_server.ts"; | ||
export { walk } from "https://deno.land/std@0.171.0/fs/walk.ts"; | ||
export { serveDir } from "https://deno.land/std@0.176.0/http/file_server.ts"; | ||
export { walk } from "https://deno.land/std@0.176.0/fs/walk.ts"; | ||
export { | ||
dirname, | ||
fromFileUrl, | ||
join, | ||
relative, | ||
} from "https://deno.land/std@0.171.0/path/mod.ts"; | ||
} from "https://deno.land/std@0.176.0/path/mod.ts"; | ||
export { | ||
type ConnInfo, | ||
serve, | ||
} from "https://deno.land/std@0.171.0/http/mod.ts"; | ||
export { extract as frontMatter } from "https://deno.land/std@0.171.0/encoding/front_matter.ts"; | ||
} from "https://deno.land/std@0.176.0/http/mod.ts"; | ||
export { extract as frontMatter } from "https://deno.land/std@0.176.0/encoding/front_matter/any.ts"; | ||
|
||
export * as gfm from "https://deno.land/x/[email protected]/mod.ts"; | ||
export * as gfm from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { Fragment, h } from "https://deno.land/x/[email protected]/mod.ts"; | ||
export { | ||
Fragment, | ||
h, | ||
html, | ||
default as html, | ||
type HtmlOptions, | ||
type VNode, | ||
} from "https://deno.land/x/[email protected]/mod.tsx"; | ||
import { UnoCSS } from "https://deno.land/x/[email protected]/plugins.ts"; | ||
} from "https://deno.land/x/[email protected]/html.tsx"; | ||
import UnoCSS from "https://deno.land/x/[email protected]/plugins/unocss.ts"; | ||
import ColorScheme from "https://deno.land/x/[email protected]/plugins/color-scheme.ts"; | ||
|
||
export { | ||
createReporter, | ||
type Reporter as GaReporter, | ||
|
@@ -34,7 +35,7 @@ export { default as removeMarkdown } from "https://esm.sh/[email protected]" | |
// Add syntax highlighting support for C by default | ||
import "https://esm.sh/[email protected]/components/prism-c?no-check"; | ||
|
||
export { UnoCSS }; | ||
export { ColorScheme, UnoCSS }; | ||
export type UnoConfig = typeof UnoCSS extends ( | ||
arg: infer P | undefined, | ||
) => unknown ? P | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Fourth post | ||
publish_date: 2023-01-30 | ||
abstract: Image deno_blog but with unsantized HTML... | ||
disable_html_sanitization: true | ||
--- | ||
|
||
## Cool Button Demo | ||
|
||
<button onclick="alert('hi!')">Click me!!!!!!</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0a43328
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am having trouble getting this working - should this work out of the box in the latest version?