This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* server-side render guide markdown * pass tests * add files field to package whitelists the styles/ and components/ dir * extremely simple server/client fork for frontend-only libs (in this case CodeMirror...) * update test snapshots * add comments * deps(markdown): add terser * style(markdown) * chore(markdown): set watch mode to dev explicitly
- v13.4.18
- v13.4.17
- v13.4.16
- v13.4.15
- v13.4.14
- v13.4.13
- v13.4.12
- v13.4.11
- v13.4.10
- v13.4.9
- v13.4.8
- v13.4.7
- v13.4.6
- v13.4.5
- v13.4.4
- v13.4.3
- v13.4.2
- v13.4.1
- v13.4.0
- v13.3.0
- v13.2.4
- v13.2.3
- v13.2.2
- v13.2.1
- v13.2.0
- v13.1.0
- v13.0.0
- v12.2.6
- v12.2.5
- v12.2.4
- v12.2.3
- v12.2.2
- v12.2.1
- v12.2.0
- v12.1.0
- v12.0.0
- v11.2.2
- v11.2.1
- v11.2.0
- v11.1.6
- v11.1.5
- v11.1.4
- v11.1.3
- v11.1.2
- v11.1.1
- v11.1.0
- v11.0.2
- v11.0.1
- v11.0.0
- v10.1.1
- v10.1.0
- v10.0.9
- v10.0.8
- v10.0.7
- v10.0.6
- v10.0.5
- v10.0.4
- v10.0.3
- v10.0.2
- v10.0.1
- v10.0.0
- v10.0.0-alpha.0
- v9.3.0
- v9.2.3
- v9.2.2
- v9.2.1
- v9.2.0
- v9.1.0
- v9.0.2
- v9.0.1
- v9.0.0
- v8.1.1
- v8.1.0
- v8.0.3
- v8.0.2
- v8.0.1
- v8.0.0
- v7.6.1
- v7.6.0
- v7.5.0
- v7.4.0
- v7.3.0
- v7.2.3
- v7.2.2
- v7.2.1
- v7.2.0
- v7.1.1
- v7.1.0
- v7.0.1
- v7.0.0
- v6.16.1
- v6.16.0
- v6.15.2
- v6.15.1
- v6.15.0
- v6.14.1
- v6.14.0
- v6.13.1
- v6.13.0
- v6.12.1
- v6.12.0
- v6.11.1
- v6.11.0
- v6.10.2
- v6.10.1
- v6.10.0
- v6.9.6
- v6.9.5
- v6.9.4
- v6.9.3
- v6.9.2
- v6.9.1
- v6.9.0
- v6.8.0
- v6.7.0
- v6.6.8
- v6.6.7
- v6.6.6
- v6.6.5
- v6.6.4
- v6.6.3
- v6.6.2
- v6.6.1
- v6.6.0
- v6.5.0
- v6.4.0
- v6.3.12
- v6.3.11
- v6.3.10
- v6.3.9
- v6.3.8
- v6.3.7
- v6.3.6
- v6.3.5
- v6.3.4
- v6.3.3
- v6.3.2
- v6.3.1
- v6.3.0
- v6.2.0
1 parent
1f7f16f
commit af8f49f
Showing
22 changed files
with
2,018 additions
and
1,817 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
packages/markdown/__tests__/__snapshots__/components.test.js.snap
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Components Embed 1`] = `"<div class=\\"embed\\"><a href=\\"https://gist.github.com/chaddy81/f852004d6d1510eec1f6\\" rel=\\"noopener noreferrer\\" style=\\"display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none;\\" target=\\"_blank\\"><b style=\\"color: rgb(51, 51, 51);\\">View Embed:</b> <span style=\\"opacity: 0.75;\\">https://gist.github.com/chaddy81/f852004d6d1510eec1f6</span></a></div>"`; | ||
exports[`Components Multi Code Block 1`] = ` | ||
"<div class=\\"CodeTabs\\"><div class=\\"CodeTabs-toolbar\\"><button type=\\"button\\">(plaintext)</button><button type=\\"button\\" class=\\"CodeTabs_active\\">(plaintext)</button></div><div class=\\"CodeTabs-inner\\"><pre><code data-lang=\\"\\" name=\\"\\"><span class=\\"cm-s-neo\\">hello | ||
</span></code></pre><pre class=\\"CodeTabs_active\\"><code data-lang=\\"\\" name=\\"\\"><span class=\\"cm-s-neo\\">world | ||
</span></code></pre></div></div>" | ||
`; |
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
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
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
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,9 @@ | ||
export { default as GlossaryItem } from './GlossaryItem'; | ||
export { default as Code } from './Code'; | ||
export { default as Table } from './Table'; | ||
export { default as Anchor } from './Anchor'; | ||
export { default as Heading } from './Heading'; | ||
export { default as Callout } from './Callout'; | ||
export { default as CodeTabs } from './CodeTabs'; | ||
export { default as Image } from './Image'; | ||
export { default as Embed } from './Embed'; |
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
Large diffs are not rendered by default.
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
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,6 @@ | ||
export { default as rdmeDivCompiler } from './div'; | ||
export { default as codeTabsCompiler } from './code-tabs'; | ||
export { default as rdmeEmbedCompiler } from './embed'; | ||
export { default as rdmeVarCompiler } from './var'; | ||
export { default as rdmeCalloutCompiler } from './callout'; | ||
export { default as rdmePinCompiler } from './pin'; |
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,6 @@ | ||
export { default as flavorCodeTabs } from './flavored/code-tabs'; | ||
export { default as flavorCallout } from './flavored/callout'; | ||
export { default as flavorEmbed } from './flavored/embed'; | ||
export { default as magicBlockParser } from './magic-block-parser'; | ||
export { default as variableParser } from './variable-parser'; | ||
export { default as gemojiParser } from './gemoji-parser'; |
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,3 @@ | ||
@import '../components/Callout/style.scss'; | ||
@import '../components/CodeTabs/style.scss'; | ||
@import '../components/Heading/style.scss'; |
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
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
@import '~@readme/syntax-highlighter/node_modules/codemirror/lib/codemirror.css'; | ||
@import '~@readme/syntax-highlighter/node_modules/codemirror/theme/neo.css'; | ||
|
||
@import './gfm.scss'; | ||
@import './gfm.overrides.scss'; | ||
@import './components.scss'; | ||
|
||
// #hub-content != html[ng-app="hub"] .markdown-body != #root > .App != #app | ||
|
||
.field-description, | ||
.markdown-body { | ||
@include gfm; | ||
font-size: 14px; | ||
} |
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,18 @@ | ||
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true }] */ | ||
const webpack = require('webpack'); | ||
const merge = require('webpack-merge'); | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
|
||
const common = require('./webpack.config'); | ||
|
||
module.exports = merge(common, { | ||
optimization: { | ||
minimize: true, | ||
minimizer: [new TerserPlugin()], | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
}), | ||
], | ||
}); |