-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom HTML #105
Comments
Again it would be great if you could provide more details. In this particular case about the current output and the expected output. Although to keep things short, I guess you want to do something like this: const body = render(
`# Hello, world!
<ul style="list-style-type: '🔔 ';">
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
- Normal list
- Normal list
- Normal list
`,
{ allowedAttributes: { ul: ["style"] } },
); |
Please close this if using |
It looks promising, but not working on my machine. The full code: import { render } from "https://deno.land/x/gfm/mod.ts";
const body = render(
`# Hello, world!
<ul style="list-style-type: '🔔 ';">
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
- Normal list
- Normal list
- Normal list
`,
{ allowedAttributes: { ul: ["style"] } },
);
export default function a() {
return <main dangerouslySetInnerHTML={{ __html: body }}>
{body}
</main>
} There is an error at |
It's always a good idea to be explicit about versions. You likely have an old version cached. Try specifying the version like this: |
I see. I thought that if you don't specify the version, the runtime will check if the cache is already in the latest version or not. I also notice that the |
Blindly using the latest version can be, at worst, a huge security vulnerability and, slightly less bad, can sometimes cause your code to break. I can't really imagine a case where always using the latest is desired. As for the caching issue, I guess if you had reran your code with For the release notes, most projects just take a list of all the PRs that have been merged. You can see I'm there:
What more are you expecting? |
I see. Thanks for your help |
I would like this code to render my custom marker. I don't want to style everything in the
style.css
.The text was updated successfully, but these errors were encountered: