Note #11

Trying out maths rendering via markdown.

This is an inline equation: , followed by a display style equation after lots more lines of paragraph to test vertical alignment of inline expressions as well as the standalone expressions. Here is also some styled text.

This is another inline expression followed by a normal expression, which align to the middle of the content:

Area of a triangle:

This is the configuration I have to enable this:

astro.config.ts
import { defineConfig } from 'astro';
import remarkMath from 'remark-math';
import rehypeMathJax from 'rehype-mathjax';
export default defineConfig({
site: 'https://www.lloydatkinson.net/',
markdown: {
remarkPlugins: [remarkMath],
},
integrations: {
mdx({
rehypePlugins: [
[rehypeMathJax],
],
}),
},
});

Read the rest of my notes

© Lloyd Atkinson 2024 ✌

I'm available for work 💡