-
Notifications
You must be signed in to change notification settings - Fork 3
Website: Refactor Blog Utils into General Utils #66
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This comment was marked as outdated.
This comment was marked as outdated.
| export async function getHtmlFromMarkdown(markdown: string): Promise<string> { | ||
| const htmlString = await unified() | ||
| .use(remarkParse) | ||
| .use(remarkHeadingId) |
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.
majority of the change in this function is for this remarkHeadingId.
I need to pass in the id to section headers for a table of contents and was having trouble finding a good way to do it. This refactor seems to satisfy for both (blog) and the upcoming (docs)
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
bot goes boop? Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
coderrabbit Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
|
@sid597 ready for review |
|
lgtm, no blockers |
Chunk of #52, will be using these in
/app/(docs)/roamSummary by CodeRabbit
New Features
Refactor
Chores