-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from microbiomedata/issue-199-guide-content-r…
…efresh Refresh Guide tab content
- Loading branch information
Showing
16 changed files
with
121 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.markdown { | ||
font-size: var(--nmdc-font-size-sm); | ||
line-height: 1.5; | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
ul { | ||
padding-inline-start: 1.25em; | ||
} | ||
|
||
li { | ||
margin: 10px 0; | ||
} | ||
|
||
li::marker { | ||
color: var(--ion-color-primary); | ||
font-size: 1.25em; | ||
line-height: 0; | ||
} | ||
|
||
blockquote { | ||
margin: 0; | ||
border-left: 4px solid var(--ion-color-primary); | ||
padding-left: 1em; | ||
opacity: 0.8; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react"; | ||
import SectionHeader, { Variant } from "../SectionHeader/SectionHeader"; | ||
import ReactMarkdown from "react-markdown"; | ||
|
||
import styles from "./Markdown.module.css"; | ||
|
||
interface MarkdownProps { | ||
/** The markdown content to render. */ | ||
children: string; | ||
|
||
/** A CSS class name to apply to the container element */ | ||
className?: string; | ||
} | ||
|
||
const Markdown: React.FC<MarkdownProps> = ({ children, className }) => { | ||
return ( | ||
<ReactMarkdown | ||
className={`ion-padding ${styles.markdown} ${className}`} | ||
components={{ | ||
h1: ({ children }) => ( | ||
<SectionHeader variant={Variant.NoMargin}>{children}</SectionHeader> | ||
), | ||
blockquote: ({ children }) => ( | ||
<blockquote className={styles.blockquote}>{children}</blockquote> | ||
), | ||
}} | ||
> | ||
{children} | ||
</ReactMarkdown> | ||
); | ||
}; | ||
|
||
export default Markdown; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.