contentlayerdev / contentlayerdev/website

Passing raw HTML tags through the markdown processor

未关闭
#43 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
documentation
主要语言
TypeScript
星标
132
派生
57
PR 合并指标
30 天内没有已合并 PR

描述

[Comments from Discord](https://discord.com/channels/872106850928164874/872106850928164878/967013217358462986):

> [Graf] I have several raw HTML tags in my Markdown (.md) files. How do I return them as-is to be shown when I call post.html? They are currently removed from it
>
> [schickling] I think there's some rehype/remark plugin that can do this.
>
> [Graf] I attempted to use rehype-raw but no dice.. ended up just using the mdx format instead to preserve the tags

Let's solve this and then add the solution to the docs.

贡献指南

这个仓库没有索引到贡献指南

调研方向

The issue names no files, tests, or entry points. Start by reproducing how raw HTML is handled in the Markdown processor and investigate the mentioned rehype-raw and remark-plugin approaches. Done means raw HTML tags are preserved in post.html and the working solution is added to the documentation.

由索引模型根据 Issue 内容生成。

评估

技术栈
markdown
领域
documentation
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。