| with using evaluate | with using MDXRemote | ||||||
Note I kept the document structure the same to see how markdown behaves to javascript expressions in curlybraces import Bar from "../../../mdxComponents/Bar.mjs"; Read in {readingTime}, written by {frontmatter.author} {frontmatter.title}Section 1Heading For ComponentsHeading For PluginsSubHeading For Flexible MarkersMarked texts: text with yellow, text with red, text with green, and text with blue. SubHeading For EmojiesSome markdown content 👍 SubHeading For Flexible ParagraphsAlert Text Centered Warning Text Aligned Right SubHeading For Flexible ContainersWarning All JSX syntax is omitted by the All javascript statements in Tip The markdown syntax inside a block-level Pay Attention The **Markdown syntax doesn't work in details-summary**+ List item - 1 + List item - 2_The markdown list syntax also doesn't work !_ Table Of Contents (Toc) The remark plugin Containers Can Be Nested Sample Details-SummaryThe Heading For Code Highlightingdemo.ts typescriptexport function factorial(factor) { if (factor <= 1) { return 1; } return factor * factorial(factor - 1); } Section 2Heading For GFMAutolink www.example.com and
Heading For MiscellenousSubHeading for Lists
SubHeading For Escapes"Authorize <GITHUB_USER>" version of <operation>.<mount> <= 1.3.x < 8ms (allowed one blank after "<") escape opening curlybraces "{}" SubHeading For CenteringCentering text and image is very easy !
SubHeading For Blockquates
export const num = 6; SubHeading For Mixing Markdown and HTML
A mix of *markdown* and HTML.
A mix of *markdown* and HTML.
A mix of *markdown* and HTML.
A mix of markdown and HTML. | |
I kept the document structure the same to see how markdown behaves to javascript expressions in curlybraces {} and mdx syntax.
import Bar from "../../../mdxComponents/Bar.mjs";
Read in {readingTime}, written by {frontmatter.author}
Marked texts: text with yellow, text with red, text with green, and text with blue.
Some markdown content 👍
Alert Text Centered
Warning Text Aligned Right
All JSX syntax is omitted by the remark parser in markdown.
All javascript statements in { } are considered as just text in markdown.
The markdown syntax inside a block-level HTML element like <p> or <details> doesn't work in markdown, but works in inline-level HTML elements like <span>.
The allowDangerousHtml is set to true by default in mdx-js/mdx. If the file is markdown "md" format, html elements are removed in case you don't use rehype-raw plugin.
_The markdown list syntax also doesn't work !_
The remark plugin remark-toc is one of the tool for creating TOC inline in the markdown files.
The remark-flexible-containers can also make this kind of details-summary HTML elements even in an another outer container.
typescript// prettier-ignore
function Text(text: string) {console.log(text)}
const text = "next-mdx-remote-client";
Text(text);
export function factorial(factor) { if (factor <= 1) { return 1; } return factor * factorial(factor - 1); }
Autolink www.example.com and inline code.
one tilde strikethrough or two tildes strikethrough
| Left Aligned Header | Right Aligned Header |
|---|---|
| Content Cell | Content Cell |
| Content Cell | Content Cell |
"Authorize <GITHUB_USER>"
version of <operation>.<mount> <= 1.3.x
< 8ms (allowed one blank after "<")
escape opening curlybraces "{}"
Centering text and image is very easy !
![]()
The
@importis used to import style rules from other valid stylesheets. blockquate markdown element
export const num = 6;
A mix of markdown and HTML.