Skip to content
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

Add Code Highlighting to RemoteContent #3251

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

alex-fusionauth
Copy link
Contributor

@alex-fusionauth alex-fusionauth commented Sep 5, 2024

Prior to change
localhost_3000_docs_sdks_react-sdk

After Change
localhost_3000_docs_sdks_react-sdk (1)

@alex-fusionauth alex-fusionauth requested review from a team as code owners September 5, 2024 20:18
import { marked } from 'marked';
* Remote content fetcher. Remote content is assumed to be markdown.
*/
import { Markdown } from "astro-remote";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not found, did you include this in the package.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad @lyleschemmerling I think I installed before I created the new branch.

@lyleschemmerling
Copy link
Contributor

My concern with this is that this will be at least the third way of parsing markdown into HTML that we have in the site code which is making me a little uneasy. In theory we can do this with what we have already, it just means mucking around in tools yet.

And now that I am looking at this I realize that the RemoteContent component will fail silently if the source is not available, which I also think needs to change because if we can't fetch the content then we shouldn't build.

@alex-fusionauth alex-fusionauth requested a review from a team as a code owner October 11, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants