├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc ├── README.md ├── __mocks__ └── next-mdx-remote │ └── serialize.js ├── examples ├── README.md ├── blog │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages-markdown │ │ ├── about.md │ │ └── blog │ │ │ ├── [note 1] get-started.md │ │ │ ├── [note 2] contribute.md │ │ │ ├── _draft.md │ │ │ ├── apple-keynote.md │ │ │ ├── hello-world.md │ │ │ ├── index.md │ │ │ └── merry-christmas.md │ ├── pages │ │ ├── [...nextmd].tsx │ │ └── index.tsx │ ├── public │ │ └── favicon.ico │ └── tsconfig.json ├── custom-remark-rehype-plugins │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages-markdown │ │ └── about.md │ ├── pages │ │ ├── [...nextmd].tsx │ │ └── index.tsx │ ├── public │ │ └── favicon.ico │ └── tsconfig.json ├── documentation │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── components │ │ ├── DocumentationPage.tsx │ │ └── MarkdownPage.tsx │ ├── lib │ │ └── types.ts │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages-markdown │ │ ├── about.md │ │ └── docs │ │ │ ├── [a] getting-started │ │ │ ├── [1] intro.md │ │ │ ├── [2] install.md │ │ │ ├── [3] setup.md │ │ │ └── _index.md │ │ │ ├── [b] features │ │ │ ├── [1] dynamic-routes.md │ │ │ ├── [2] support-mdx.md │ │ │ └── _index.md │ │ │ ├── [c] examples │ │ │ ├── [1] blog.md │ │ │ ├── [2] docs.md │ │ │ ├── [3] mdx.md │ │ │ └── _index.md │ │ │ └── index.md │ ├── pages │ │ ├── [...nextmd].tsx │ │ └── index.tsx │ ├── public │ │ └── favicon.ico │ └── tsconfig.json ├── dynamic-routes │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages-markdown │ │ ├── _draft.md │ │ ├── about.md │ │ └── hello │ │ │ ├── index.md │ │ │ ├── jurassic │ │ │ └── world.md │ │ │ └── world.md │ ├── pages │ │ ├── [...nextmd].tsx │ │ └── index.tsx │ ├── public │ │ └── favicon.ico │ └── tsconfig.json ├── js │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages-md │ │ └── blog │ │ │ ├── index.md │ │ │ ├── post1.md │ │ │ └── post2.md │ ├── pages │ │ ├── [...nextmd].jsx │ │ └── index.js │ ├── public │ │ └── favicon.ico │ └── tsconfig.json ├── mdx │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── components │ │ └── button.tsx │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages-markdown │ │ ├── about.md │ │ └── hello.mdx │ ├── pages │ │ ├── [...nextmd].tsx │ │ └── index.tsx │ ├── public │ │ └── favicon.ico │ └── tsconfig.json ├── personal-blog │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── components │ │ ├── blog-post.tsx │ │ ├── home.tsx │ │ └── table-of-contents.tsx │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages-markdown │ │ ├── index.md │ │ └── posts │ │ │ ├── _draft.md │ │ │ ├── _index.md │ │ │ ├── apple-keynote.md │ │ │ ├── hello-world.md │ │ │ └── merry-christmas.md │ ├── pages │ │ └── [[...nextmd]].tsx │ ├── public │ │ └── favicon.ico │ └── tsconfig.json └── remote-content │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages │ ├── [...nextmd].tsx │ └── index.tsx │ ├── public │ └── favicon.ico │ └── tsconfig.json ├── jest.config.json ├── logo.png ├── package.json ├── src ├── __tests__ │ ├── __filesystem__ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── a.swift │ │ ├── about.md │ │ ├── b.md │ │ ├── blog │ │ │ ├── index.md │ │ │ ├── post-1.md │ │ │ ├── post-2.mdx │ │ │ └── post-3.md │ │ ├── docs │ │ │ ├── [0] getting-started │ │ │ │ ├── [a] install.md │ │ │ │ ├── [b] setup.md │ │ │ │ ├── _draft.md │ │ │ │ └── index.md │ │ │ ├── [1] api │ │ │ │ ├── [a] get-static-paths.md │ │ │ │ ├── [b] get-static-props.md │ │ │ │ └── _index.md │ │ │ └── [2] examples │ │ │ │ ├── [a] dynamic-routes.md │ │ │ │ ├── [b] blog.md │ │ │ │ └── [c] mdx-support.md │ │ └── path │ │ │ ├── README.md │ │ │ ├── _draft.md │ │ │ ├── c.md │ │ │ └── to │ │ │ ├── _draft.md │ │ │ ├── _index.md │ │ │ ├── d.txt │ │ │ ├── e.mdx │ │ │ └── f.md │ ├── __snapshots__ │ │ ├── fs.test.ts.snap │ │ ├── getStaticPaths.test.ts.snap │ │ ├── getStaticPropsForNextmd.test.ts.snap │ │ └── table-of-contents.test.ts.snap │ ├── fs.test.ts │ ├── generateNextmd.test.ts │ ├── getStaticPaths.test.ts │ ├── getStaticPropsForNextmd.test.ts │ ├── index.test.ts │ ├── markdown.test.ts │ └── table-of-contents.test.ts ├── index.ts ├── types.ts └── utils │ ├── alt.ts │ ├── cmd.ts │ ├── fs.ts │ ├── git.ts │ ├── logger.ts │ ├── markdown.ts │ └── table-of-contents.ts ├── tsconfig.json ├── tsconfig.test.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | tag-version-prefix="" 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # Ignore artifacts: 2 | .next 3 | dist 4 | package-lock.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/README.md -------------------------------------------------------------------------------- /__mocks__/next-mdx-remote/serialize.js: -------------------------------------------------------------------------------- 1 | exports.serialize = () => { 2 | return 'mocked'; 3 | }; 4 | -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/blog/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/blog/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/.gitignore -------------------------------------------------------------------------------- /examples/blog/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/README.md -------------------------------------------------------------------------------- /examples/blog/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/next-env.d.ts -------------------------------------------------------------------------------- /examples/blog/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/next.config.js -------------------------------------------------------------------------------- /examples/blog/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/package-lock.json -------------------------------------------------------------------------------- /examples/blog/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/package.json -------------------------------------------------------------------------------- /examples/blog/pages-markdown/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/about.md -------------------------------------------------------------------------------- /examples/blog/pages-markdown/blog/[note 1] get-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/blog/[note 1] get-started.md -------------------------------------------------------------------------------- /examples/blog/pages-markdown/blog/[note 2] contribute.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/blog/[note 2] contribute.md -------------------------------------------------------------------------------- /examples/blog/pages-markdown/blog/_draft.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/blog/_draft.md -------------------------------------------------------------------------------- /examples/blog/pages-markdown/blog/apple-keynote.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/blog/apple-keynote.md -------------------------------------------------------------------------------- /examples/blog/pages-markdown/blog/hello-world.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/blog/hello-world.md -------------------------------------------------------------------------------- /examples/blog/pages-markdown/blog/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/blog/index.md -------------------------------------------------------------------------------- /examples/blog/pages-markdown/blog/merry-christmas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages-markdown/blog/merry-christmas.md -------------------------------------------------------------------------------- /examples/blog/pages/[...nextmd].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages/[...nextmd].tsx -------------------------------------------------------------------------------- /examples/blog/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/pages/index.tsx -------------------------------------------------------------------------------- /examples/blog/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/public/favicon.ico -------------------------------------------------------------------------------- /examples/blog/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/blog/tsconfig.json -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/.gitignore -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/README.md -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/next-env.d.ts -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/next.config.js -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/package-lock.json -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/package.json -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/pages-markdown/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/pages-markdown/about.md -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/pages/[...nextmd].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/pages/[...nextmd].tsx -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/pages/index.tsx -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/public/favicon.ico -------------------------------------------------------------------------------- /examples/custom-remark-rehype-plugins/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/custom-remark-rehype-plugins/tsconfig.json -------------------------------------------------------------------------------- /examples/documentation/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/documentation/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/.gitignore -------------------------------------------------------------------------------- /examples/documentation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/README.md -------------------------------------------------------------------------------- /examples/documentation/components/DocumentationPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/components/DocumentationPage.tsx -------------------------------------------------------------------------------- /examples/documentation/components/MarkdownPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/components/MarkdownPage.tsx -------------------------------------------------------------------------------- /examples/documentation/lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/lib/types.ts -------------------------------------------------------------------------------- /examples/documentation/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/next-env.d.ts -------------------------------------------------------------------------------- /examples/documentation/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/next.config.js -------------------------------------------------------------------------------- /examples/documentation/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/package-lock.json -------------------------------------------------------------------------------- /examples/documentation/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/package.json -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/about.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[a] getting-started/[1] intro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[a] getting-started/[1] intro.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[a] getting-started/[2] install.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[a] getting-started/[2] install.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[a] getting-started/[3] setup.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[a] getting-started/[3] setup.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[a] getting-started/_index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[a] getting-started/_index.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[b] features/[1] dynamic-routes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[b] features/[1] dynamic-routes.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[b] features/[2] support-mdx.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[b] features/[2] support-mdx.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[b] features/_index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[b] features/_index.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[c] examples/[1] blog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[c] examples/[1] blog.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[c] examples/[2] docs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[c] examples/[2] docs.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[c] examples/[3] mdx.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[c] examples/[3] mdx.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/[c] examples/_index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/[c] examples/_index.md -------------------------------------------------------------------------------- /examples/documentation/pages-markdown/docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages-markdown/docs/index.md -------------------------------------------------------------------------------- /examples/documentation/pages/[...nextmd].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages/[...nextmd].tsx -------------------------------------------------------------------------------- /examples/documentation/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/pages/index.tsx -------------------------------------------------------------------------------- /examples/documentation/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/public/favicon.ico -------------------------------------------------------------------------------- /examples/documentation/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/documentation/tsconfig.json -------------------------------------------------------------------------------- /examples/dynamic-routes/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/dynamic-routes/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/.gitignore -------------------------------------------------------------------------------- /examples/dynamic-routes/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/README.md -------------------------------------------------------------------------------- /examples/dynamic-routes/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/next-env.d.ts -------------------------------------------------------------------------------- /examples/dynamic-routes/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/next.config.js -------------------------------------------------------------------------------- /examples/dynamic-routes/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/package-lock.json -------------------------------------------------------------------------------- /examples/dynamic-routes/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/package.json -------------------------------------------------------------------------------- /examples/dynamic-routes/pages-markdown/_draft.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/pages-markdown/_draft.md -------------------------------------------------------------------------------- /examples/dynamic-routes/pages-markdown/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/pages-markdown/about.md -------------------------------------------------------------------------------- /examples/dynamic-routes/pages-markdown/hello/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/pages-markdown/hello/index.md -------------------------------------------------------------------------------- /examples/dynamic-routes/pages-markdown/hello/jurassic/world.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/pages-markdown/hello/jurassic/world.md -------------------------------------------------------------------------------- /examples/dynamic-routes/pages-markdown/hello/world.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/pages-markdown/hello/world.md -------------------------------------------------------------------------------- /examples/dynamic-routes/pages/[...nextmd].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/pages/[...nextmd].tsx -------------------------------------------------------------------------------- /examples/dynamic-routes/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/pages/index.tsx -------------------------------------------------------------------------------- /examples/dynamic-routes/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/public/favicon.ico -------------------------------------------------------------------------------- /examples/dynamic-routes/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/dynamic-routes/tsconfig.json -------------------------------------------------------------------------------- /examples/js/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/js/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/.gitignore -------------------------------------------------------------------------------- /examples/js/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/README.md -------------------------------------------------------------------------------- /examples/js/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/next.config.js -------------------------------------------------------------------------------- /examples/js/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/package-lock.json -------------------------------------------------------------------------------- /examples/js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/package.json -------------------------------------------------------------------------------- /examples/js/pages-md/blog/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/pages-md/blog/index.md -------------------------------------------------------------------------------- /examples/js/pages-md/blog/post1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/pages-md/blog/post1.md -------------------------------------------------------------------------------- /examples/js/pages-md/blog/post2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/pages-md/blog/post2.md -------------------------------------------------------------------------------- /examples/js/pages/[...nextmd].jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/pages/[...nextmd].jsx -------------------------------------------------------------------------------- /examples/js/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/pages/index.js -------------------------------------------------------------------------------- /examples/js/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/public/favicon.ico -------------------------------------------------------------------------------- /examples/js/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/js/tsconfig.json -------------------------------------------------------------------------------- /examples/mdx/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/mdx/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/.gitignore -------------------------------------------------------------------------------- /examples/mdx/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/README.md -------------------------------------------------------------------------------- /examples/mdx/components/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/components/button.tsx -------------------------------------------------------------------------------- /examples/mdx/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/next-env.d.ts -------------------------------------------------------------------------------- /examples/mdx/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/next.config.js -------------------------------------------------------------------------------- /examples/mdx/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/package-lock.json -------------------------------------------------------------------------------- /examples/mdx/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/package.json -------------------------------------------------------------------------------- /examples/mdx/pages-markdown/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/pages-markdown/about.md -------------------------------------------------------------------------------- /examples/mdx/pages-markdown/hello.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/pages-markdown/hello.mdx -------------------------------------------------------------------------------- /examples/mdx/pages/[...nextmd].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/pages/[...nextmd].tsx -------------------------------------------------------------------------------- /examples/mdx/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/pages/index.tsx -------------------------------------------------------------------------------- /examples/mdx/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/public/favicon.ico -------------------------------------------------------------------------------- /examples/mdx/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/mdx/tsconfig.json -------------------------------------------------------------------------------- /examples/personal-blog/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/personal-blog/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/.gitignore -------------------------------------------------------------------------------- /examples/personal-blog/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/README.md -------------------------------------------------------------------------------- /examples/personal-blog/components/blog-post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/components/blog-post.tsx -------------------------------------------------------------------------------- /examples/personal-blog/components/home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/components/home.tsx -------------------------------------------------------------------------------- /examples/personal-blog/components/table-of-contents.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/components/table-of-contents.tsx -------------------------------------------------------------------------------- /examples/personal-blog/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/next-env.d.ts -------------------------------------------------------------------------------- /examples/personal-blog/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/next.config.js -------------------------------------------------------------------------------- /examples/personal-blog/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/package-lock.json -------------------------------------------------------------------------------- /examples/personal-blog/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/package.json -------------------------------------------------------------------------------- /examples/personal-blog/pages-markdown/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/pages-markdown/index.md -------------------------------------------------------------------------------- /examples/personal-blog/pages-markdown/posts/_draft.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/pages-markdown/posts/_draft.md -------------------------------------------------------------------------------- /examples/personal-blog/pages-markdown/posts/_index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/pages-markdown/posts/_index.md -------------------------------------------------------------------------------- /examples/personal-blog/pages-markdown/posts/apple-keynote.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/pages-markdown/posts/apple-keynote.md -------------------------------------------------------------------------------- /examples/personal-blog/pages-markdown/posts/hello-world.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/pages-markdown/posts/hello-world.md -------------------------------------------------------------------------------- /examples/personal-blog/pages-markdown/posts/merry-christmas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/pages-markdown/posts/merry-christmas.md -------------------------------------------------------------------------------- /examples/personal-blog/pages/[[...nextmd]].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/pages/[[...nextmd]].tsx -------------------------------------------------------------------------------- /examples/personal-blog/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/public/favicon.ico -------------------------------------------------------------------------------- /examples/personal-blog/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/personal-blog/tsconfig.json -------------------------------------------------------------------------------- /examples/remote-content/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/remote-content/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/.gitignore -------------------------------------------------------------------------------- /examples/remote-content/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/README.md -------------------------------------------------------------------------------- /examples/remote-content/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/next-env.d.ts -------------------------------------------------------------------------------- /examples/remote-content/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/next.config.js -------------------------------------------------------------------------------- /examples/remote-content/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/package-lock.json -------------------------------------------------------------------------------- /examples/remote-content/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/package.json -------------------------------------------------------------------------------- /examples/remote-content/pages/[...nextmd].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/pages/[...nextmd].tsx -------------------------------------------------------------------------------- /examples/remote-content/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/pages/index.tsx -------------------------------------------------------------------------------- /examples/remote-content/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/public/favicon.ico -------------------------------------------------------------------------------- /examples/remote-content/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/examples/remote-content/tsconfig.json -------------------------------------------------------------------------------- /jest.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/jest.config.json -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/__filesystem__/.gitignore -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/README.md: -------------------------------------------------------------------------------- 1 | by default, this file will be ignored. 2 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/a.swift: -------------------------------------------------------------------------------- 1 | // only md or mdx files -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/about.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/b.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/blog/index.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/blog/post-1.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/blog/post-2.mdx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/blog/post-3.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[0] getting-started/[a] install.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[0] getting-started/[b] setup.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[0] getting-started/_draft.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[0] getting-started/index.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[1] api/[a] get-static-paths.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[1] api/[b] get-static-props.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[1] api/_index.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[2] examples/[a] dynamic-routes.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[2] examples/[b] blog.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/docs/[2] examples/[c] mdx-support.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/README.md: -------------------------------------------------------------------------------- 1 | by default, this file will be ignored. 2 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/_draft.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/c.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/to/_draft.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/to/_index.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/to/d.txt: -------------------------------------------------------------------------------- 1 | only md or mdx files -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/to/e.mdx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__filesystem__/path/to/f.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/fs.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/__snapshots__/fs.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/getStaticPaths.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/__snapshots__/getStaticPaths.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/getStaticPropsForNextmd.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/__snapshots__/getStaticPropsForNextmd.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/table-of-contents.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/__snapshots__/table-of-contents.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/fs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/fs.test.ts -------------------------------------------------------------------------------- /src/__tests__/generateNextmd.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/generateNextmd.test.ts -------------------------------------------------------------------------------- /src/__tests__/getStaticPaths.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/getStaticPaths.test.ts -------------------------------------------------------------------------------- /src/__tests__/getStaticPropsForNextmd.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/getStaticPropsForNextmd.test.ts -------------------------------------------------------------------------------- /src/__tests__/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/index.test.ts -------------------------------------------------------------------------------- /src/__tests__/markdown.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/markdown.test.ts -------------------------------------------------------------------------------- /src/__tests__/table-of-contents.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/__tests__/table-of-contents.test.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/alt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/utils/alt.ts -------------------------------------------------------------------------------- /src/utils/cmd.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/utils/cmd.ts -------------------------------------------------------------------------------- /src/utils/fs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/utils/fs.ts -------------------------------------------------------------------------------- /src/utils/git.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/utils/git.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /src/utils/markdown.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/utils/markdown.ts -------------------------------------------------------------------------------- /src/utils/table-of-contents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/src/utils/table-of-contents.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/tsconfig.test.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frouo/next-markdown/HEAD/tslint.json --------------------------------------------------------------------------------