Closed rmenner closed 2 weeks ago
This PR refactors the markdown rendering functionality by introducing a new reusable RenderRemoteMarkdown
component and updating the external link handling. The changes centralize markdown rendering logic, improve code reusability, and enhance the styling of external links.
classDiagram
class RenderRemoteMarkdown {
+useState()
+useEffect()
+fetchData()
+ReactMarkdown
+remarkGfm
+remarkRehype
+rehypeHighlight
+rehypeExternalLinks
+rehypeRaw
}
note for RenderRemoteMarkdown "This component fetches and renders markdown content from a URL."
classDiagram
class AuroComponentContent {
-getMarkdownText()
+componentDidMount()
+RenderRemoteMarkdown
}
note for AuroComponentContent "Replaced getMarkdownText with RenderRemoteMarkdown for markdown rendering."
Change | Details | Files |
---|---|---|
Created a new reusable RenderRemoteMarkdown component for handling remote markdown content |
|
src/functions/renderRemoteMarkdown.js |
Refactored external link handling in markdown content |
|
src/sass/markdown.scss |
Updated all component files to use the new RenderRemoteMarkdown component |
|
src/functions/renderComponentPage.js src/functions/renderMarkdownPage.js src/content/dynamic/_template/component.js src/content/dynamic/contributing/contributing.js src/content/dynamic/contributing/dod.js src/content/dynamic/tokenlist/component.js |
Additional change request - make sure to update all dependencies
Alaska Airlines Pull Request
Type of change:
Please delete options that are not relevant.
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Enhancements: