Testing Post 2
Testing Post 2
This is the starter
Charts
Posts support interactive charts. Write a fenced code block tagged chart
with a JSON body and the renderer draws the graph. Hover a chart to inspect
values; click a line-chart legend item to toggle that series.
Line chart
Provide shared labels for the x-axis and one or more series, each with its
own values. Optional smooth and area flags.
A series can instead be described as { "x": ..., "y": ... } points:
Pie chart
Use slices, each with a label and value. Add "donut": true for a donut
variant. Hover a slice (or its legend entry) to highlight it.
Map chart
Draw routes from Point A to Point B on a draggable 3D globe. List the points
(with lat/lng) and the routes between them; a route's from/to can
reference a point by name or carry inline coordinates. Set
"autoRotate": false to keep the globe still, and use the on-map button to
toggle rotation. The route line itself stays fixed.
- Diving trip
- Move to Japan
Math (LaTeX)
Posts render LaTeX with KaTeX. There are three ways to
write it: $…$ for inline math, $$…$$ for a centred display block, and a
fenced ```math block when the source deserves its own lines. Everything is
typeset at build time, so no client-side script has to run for the formulas to
show up.
Inline math
Wrap the expression in single dollar signs: Euler's identity, , flows with the surrounding sentence, and so do symbols such as , , , fractions like and comparisons such as .
Display math
Double dollar signs on their own lines centre the formula and give it room to breathe:
Fenced math blocks
A fenced block tagged math is equivalent to $$…$$ and keeps long derivations
readable in the source file:
Environments such as aligned, cases, matrix and array all work:
Grammar brace (Japanese text)
\text{} accepts Japanese, and \left. … \right\} draws a one-sided brace,
which suits grammar tables. \sout{} strikes out the dropped kana:
Math inside other blocks
Formulas are allowed anywhere inline text is, including list items:
- Arithmetic series:
- Geometric series: for
- Binomial coefficient:
...and table cells:
| Notation | Meaning | Example |
|---|---|---|
| Linear time | A single pass over items | |
| Linearithmic time | Comparison sorting | |
| Constant time | A hash lookup |
Headings can hold math, like
The table of contents on the right lists this section by the formula as it is drawn, and the heading's anchor link is still derived from the plain source.
Escaping dollar signs
A backslash keeps a dollar sign literal, so $5 and $10 stay plain text rather
than opening a formula. Inline code is never parsed as math either, so
$not math$ renders verbatim. A formula KaTeX cannot parse is shown in red
where it sits instead of breaking the rest of the page.
Quotes
Start a line with > to make a blockquote:
Don't let anyone turn your sky into a ceiling.
Quotes can hold several paragraphs, bold, italic, code and links:
The first paragraph of a longer quote.
A second paragraph with bold, italic,
inline codeand a link.
Put a MingCute icon at the start to turn a quote into a callout:
Tip: renew the My Number Card together with the residence card.
Three wrong PIN entries lock the card.
Quotes can be nested, and can contain lists and math:
Outer quote
Nested quote
- A list item inside a quote
- Inline math such as also works here