@jpmorganchase/mosaic-site-middleware 0.1.0-beta.21 → 0.1.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/compileMdx.js +2 -1
- package/dist/compileMdx.js.map +1 -1
- package/package.json +5 -4
- package/src/compileMdx.ts +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@jpmorganchase/mosaic-site-middleware:build: cache hit, replaying output
|
|
1
|
+
@jpmorganchase/mosaic-site-middleware:build: cache hit, replaying output af92a18edb1140c1
|
|
2
2
|
@jpmorganchase/mosaic-site-middleware:build: $ tsc
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @jpmorganchase/mosaic-site-middleware
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- be89e4f: fix markdown tables and update generator's Salt patches
|
|
8
|
+
|
|
9
|
+
- Salt patches in generator were out of sync with Mosaic repo
|
|
10
|
+
- Markdown now support github flavoured markdown, such as Tables
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [be89e4f]
|
|
13
|
+
- @jpmorganchase/mosaic-schemas@0.1.0-beta.22
|
|
14
|
+
- @jpmorganchase/mosaic-store@0.1.0-beta.22
|
|
15
|
+
- @jpmorganchase/mosaic-types@0.1.0-beta.22
|
|
16
|
+
|
|
3
17
|
## 0.1.0-beta.21
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/compileMdx.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { serialize } from 'next-mdx-remote/serialize';
|
|
2
|
+
import remarkGfm from 'remark-gfm';
|
|
2
3
|
import rehypeSlug from 'rehype-slug';
|
|
3
4
|
import { codeBlocks } from './plugins/codeBlocks.js';
|
|
4
5
|
export async function compileMDX(content, parseFrontmatter = true, rehypePlugins = [], remarkPlugins = []) {
|
|
5
6
|
const mdxSource = await serialize(content, {
|
|
6
7
|
mdxOptions: {
|
|
7
8
|
rehypePlugins: [rehypeSlug, ...remarkPlugins],
|
|
8
|
-
remarkPlugins: [codeBlocks, ...rehypePlugins]
|
|
9
|
+
remarkPlugins: [codeBlocks, remarkGfm, ...rehypePlugins]
|
|
9
10
|
},
|
|
10
11
|
parseFrontmatter
|
|
11
12
|
});
|
package/dist/compileMdx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileMdx.js","sourceRoot":"","sources":["../src/compileMdx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAO,EACP,gBAAgB,GAAG,IAAI,EACvB,aAAa,GAAG,EAAE,EAClB,aAAa,GAAG,EAAE;IAElB,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE;QACzC,UAAU,EAAE;YACV,aAAa,EAAE,CAAC,UAAU,EAAE,GAAG,aAAa,CAAC;YAC7C,aAAa,EAAE,CAAC,UAAU,EAAE,GAAG,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"compileMdx.js","sourceRoot":"","sources":["../src/compileMdx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAO,EACP,gBAAgB,GAAG,IAAI,EACvB,aAAa,GAAG,EAAE,EAClB,aAAa,GAAG,EAAE;IAElB,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE;QACzC,UAAU,EAAE;YACV,aAAa,EAAE,CAAC,UAAU,EAAE,GAAG,aAAa,CAAC;YAC7C,aAAa,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,aAAa,CAAC;SACzD;QACD,gBAAgB;KACjB,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpmorganchase/mosaic-site-middleware",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.22",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Mosaic - Site middleware",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@aws-sdk/client-s3": "^3.256.0",
|
|
30
|
-
"@jpmorganchase/mosaic-schemas": "^0.1.0-beta.
|
|
31
|
-
"@jpmorganchase/mosaic-store": "^0.1.0-beta.
|
|
32
|
-
"@jpmorganchase/mosaic-types": "^0.1.0-beta.
|
|
30
|
+
"@jpmorganchase/mosaic-schemas": "^0.1.0-beta.22",
|
|
31
|
+
"@jpmorganchase/mosaic-store": "^0.1.0-beta.22",
|
|
32
|
+
"@jpmorganchase/mosaic-types": "^0.1.0-beta.22",
|
|
33
33
|
"@types/mdast": "^3.0.0",
|
|
34
34
|
"acorn": "^8.0.0",
|
|
35
35
|
"acorn-jsx": "^5.0.0",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"node-cookie": "^2.1.2",
|
|
42
42
|
"react-error-boundary": "^3.1.4",
|
|
43
43
|
"react-pro-sidebar": "1.0.0-alpha.7",
|
|
44
|
+
"remark-gfm": "3.0.1",
|
|
44
45
|
"rehype-slug": "^5.0.1",
|
|
45
46
|
"unified": "^10.0.0",
|
|
46
47
|
"unist-util-visit": "^2.0.0",
|
package/src/compileMdx.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { serialize } from 'next-mdx-remote/serialize';
|
|
2
|
+
import remarkGfm from 'remark-gfm';
|
|
2
3
|
import rehypeSlug from 'rehype-slug';
|
|
3
4
|
import { codeBlocks } from './plugins/codeBlocks.js';
|
|
4
5
|
|
|
@@ -11,7 +12,7 @@ export async function compileMDX(
|
|
|
11
12
|
const mdxSource = await serialize(content, {
|
|
12
13
|
mdxOptions: {
|
|
13
14
|
rehypePlugins: [rehypeSlug, ...remarkPlugins],
|
|
14
|
-
remarkPlugins: [codeBlocks, ...rehypePlugins]
|
|
15
|
+
remarkPlugins: [codeBlocks, remarkGfm, ...rehypePlugins]
|
|
15
16
|
},
|
|
16
17
|
parseFrontmatter
|
|
17
18
|
});
|