generated from cfpb/open-source-project-template
-
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.
- Loading branch information
Showing
79 changed files
with
1,732 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.58 KB
.yarn/cache/character-entities-html4-npm-2.1.0-ff9355188e-7034aa7c7f.zip
Binary file not shown.
Binary file added
BIN
+4.72 KB
.yarn/cache/character-entities-legacy-npm-3.0.0-ba39d6d541-7582af055c.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.64 KB
.yarn/cache/character-reference-invalid-npm-2.0.1-edca9dd17a-98d3b1a52a.zip
Binary file not shown.
Binary file added
BIN
+5.1 KB
.yarn/cache/comma-separated-tokens-npm-2.0.3-a4a34086b3-e3bf9e0332.zip
Binary file not shown.
Binary file added
BIN
+5.54 KB
.yarn/cache/decode-named-character-reference-npm-1.0.2-db17a755fd-f4c71d3b93.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.03 KB
.yarn/cache/estree-util-is-identifier-name-npm-3.0.0-7815ea9f20-ea3909f018.zip
Binary file not shown.
Binary file added
BIN
+20 KB
.yarn/cache/hast-util-to-jsx-runtime-npm-2.3.0-c0e033a67f-599a97c6ec.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+26.5 KB
.yarn/cache/mdast-util-from-markdown-npm-2.0.0-7358a7473f-4e8d8a46b4.zip
Binary file not shown.
Binary file added
BIN
+8.71 KB
.yarn/cache/mdast-util-mdx-expression-npm-2.0.0-442ccac045-4e1183000e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+70.7 KB
.yarn/cache/mdast-util-to-markdown-npm-2.1.0-450939723c-3a2cf3957e.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+102 KB
.yarn/cache/micromark-core-commonmark-npm-2.0.1-47bd3ea994-6a9891cc88.zip
Binary file not shown.
Binary file added
BIN
+7.18 KB
.yarn/cache/micromark-factory-destination-npm-2.0.0-1b8de67781-d36e65ed1c.zip
Binary file not shown.
Binary file added
BIN
+6.96 KB
.yarn/cache/micromark-factory-label-npm-2.0.0-9e92e5cd87-c021dbd0ed.zip
Binary file not shown.
Binary file added
BIN
+6.44 KB
.yarn/cache/micromark-factory-space-npm-2.0.0-715185b38a-4ffdcdc2f7.zip
Binary file not shown.
Binary file added
BIN
+6.48 KB
.yarn/cache/micromark-factory-title-npm-2.0.0-9107a1e877-39e1ac23af.zip
Binary file not shown.
Binary file added
BIN
+5.64 KB
.yarn/cache/micromark-factory-whitespace-npm-2.0.0-53940ab034-9587c2546d.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.2 KB
.yarn/cache/micromark-util-character-npm-2.1.0-86cf4a520e-36ee910f84.zip
Binary file not shown.
Binary file added
BIN
+6.92 KB
.yarn/cache/micromark-util-chunked-npm-2.0.0-97063efe7b-324f95cccd.zip
Binary file not shown.
Binary file added
BIN
+5.53 KB
.yarn/cache/micromark-util-classify-character-npm-2.0.0-a260c97f86-086e52904d.zip
Binary file not shown.
Binary file added
BIN
+4.44 KB
.yarn/cache/micromark-util-combine-extensions-npm-2.0.0-6af1824ca7-107c477003.zip
Binary file not shown.
Binary file added
BIN
+5.74 KB
...che/micromark-util-decode-numeric-character-reference-npm-2.0.1-2db25e156f-9512507722.zip
Binary file not shown.
Binary file added
BIN
+5.23 KB
.yarn/cache/micromark-util-decode-string-npm-2.0.0-111ff2ba19-a75daf32a4.zip
Binary file not shown.
Binary file added
BIN
+3.56 KB
.yarn/cache/micromark-util-encode-npm-2.0.0-c2e70ee7cb-853a3f33fc.zip
Binary file not shown.
Binary file added
BIN
+4.46 KB
.yarn/cache/micromark-util-html-tag-name-npm-2.0.0-b09431e16f-d786d4486f.zip
Binary file not shown.
Binary file added
BIN
+5.98 KB
.yarn/cache/micromark-util-normalize-identifier-npm-2.0.0-1bfb89b3be-b36da2d3fd.zip
Binary file not shown.
Binary file added
BIN
+4.26 KB
.yarn/cache/micromark-util-resolve-all-npm-2.0.0-113e659bd2-31fe703b85.zip
Binary file not shown.
Binary file added
BIN
+7.61 KB
.yarn/cache/micromark-util-sanitize-uri-npm-2.0.0-6c6c9b7f33-ea4c28bbff.zip
Binary file not shown.
Binary file added
BIN
+20.3 KB
.yarn/cache/micromark-util-subtokenize-npm-2.0.1-6236be35f3-5d338883ad.zip
Binary file not shown.
Binary file added
BIN
+13.9 KB
.yarn/cache/micromark-util-symbol-npm-2.0.0-dbed08e1a1-fa4a05bff5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.35 KB
.yarn/cache/space-separated-tokens-npm-2.0.2-b7ff42c9c6-202e97d7ca.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.06 KB
.yarn/cache/unist-util-remove-position-npm-5.0.0-1f2a181e0a-8aabdb9d0e.zip
Binary file not shown.
Binary file added
BIN
+6.54 KB
.yarn/cache/unist-util-stringify-position-npm-4.0.0-2362acd217-e2e7aee4b9.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.7 KB
.yarn/cache/unist-util-visit-parents-npm-6.0.1-29ba152125-08927647c5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 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 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,59 @@ | ||
/* eslint-disable react/jsx-curly-brace-presence */ | ||
/* eslint-disable prettier/prettier */ | ||
import { Grid } from 'design-system-react'; | ||
import type { JSXElement } from 'design-system-react/dist/types/jsxElement'; | ||
import Markdown from 'react-markdown'; | ||
import { useFilingAndSubmissionInfo } from 'utils/useFilingAndSubmissionInfo'; | ||
|
||
export function MarkdownText(): JSXElement { | ||
const { submission } = useFilingAndSubmissionInfo({ | ||
lei: '123456789TESTBANK123', | ||
filingPeriod: '2024', | ||
}); | ||
|
||
return ( | ||
<Grid.Wrapper center> | ||
<Grid.Row> | ||
<Grid.Column width={8} className='u-mt15'> | ||
MARKDOWN TEST | ||
</Grid.Column> | ||
</Grid.Row> | ||
<Grid.Row> | ||
<Grid.Column width={8} className='u-mt15'> | ||
{submission?.validation_json?.logic_warnings?.details?.map( | ||
({ validation }) => { | ||
return ( | ||
<div key={validation.id} className='u-mb30'> | ||
<div>{validation.id}</div> | ||
<div> | ||
<Markdown>{validation.description}</Markdown> | ||
</div> | ||
</div> | ||
); | ||
}, | ||
)} | ||
</Grid.Column> | ||
</Grid.Row> | ||
<Grid.Row> | ||
<Grid.Column width={8} className='u-mt15'> | ||
<Markdown> | ||
{`# H1\n## H2\n### H3`} | ||
</Markdown> | ||
<Markdown>{`**bold text**\n\n*italicized text*\n\n> blockquote\n`}</Markdown> | ||
<Markdown>{`~~strikethrough~~`}</Markdown> | ||
<Markdown>{`1. First item\n2. Second item\n4. Third item`}</Markdown> | ||
<Markdown>{`- First item\n- Second item\n- Third item`}</Markdown> | ||
{/* // eslint-disable-next-line react/jsx-curly-brace-presence */} | ||
<Markdown>{"`code`"}</Markdown> | ||
<Markdown>{"---"}</Markdown> | ||
<Markdown>{"[Markdown Guide](https://www.markdownguide.org)"}</Markdown> | ||
<Markdown>{"![alt text](https://www.markdownguide.org/assets/images/tux.png)"}</Markdown> | ||
<Markdown>{`## Table\n\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |\n\n`}</Markdown> | ||
<Markdown>{"## Codeblock\n\n```\n{\n'firstName': 'John',\n 'lastName': 'Smith',\n 'age': 25\n}\n```"}</Markdown> | ||
</Grid.Column> | ||
</Grid.Row> | ||
</Grid.Wrapper> | ||
); | ||
} | ||
|
||
export default MarkdownText; |
Oops, something went wrong.