# Some useful markdown noting codes
*September 16, 2022*

# Some useful markdown note taking codes

##  Maths

### In-line maths(LaTeX?) expressions

Turn on the "In-line Math Equation" option in your editor. In my editor Typora, you can turn it on in   ``File>>Preferences>>Markdown>>Syntax Support>>Inline Math``. Then just write as the following(Please don't judge whether the equation is wrong or not, after all, this is just a demonstration.):

```latex
$inline \ math \ example: \ f(x)=x^2+y_2$
```

It will look like: $inline \ math \ example: \ f(x)=x^2+y_2$ 



## Note taking

### Changing the text and background colour

Markdown is not able to change text number by default. But by writing HTML code, one could change the text color and bkg colour.

Here's an example

```html
<span style="color:'the colour name or the html colour code'">text</span> //text colour

<span style="background-color:'the colour name or the html colour code'">text</span> //background colour

```

<span style="color:blue">blue</span>

<span style="background-color:yellow">yellow background colour</span>

More interestingly, you could still use markdown format inside the html rendering:

```
<span style="background-color:#00ffff"><span style="color:red">Red text</span> in cyan background colour</span>

<span style="background-color:#00ffff"><span style="color:red">**Bold red text**</span> in cyan background colour</span>

<span style="background-color:#00ffff"><span style="color:red">**Bold red $LaTeX$ expression**</span> in cyan background colour</span>
```

<span style="background-color:#00ffff"><span style="color:red">Red text</span> in cyan background colour</span>

<span style="background-color:#00ffff"><span style="color:red">**Bold red text**</span> in cyan background colour</span>

<span style="background-color:#00ffff"><span style="color:red">**Bold red $LaTeX$ expression**</span> in cyan background colour</span>



## In other languages

- [简体中文](https://blog.ous50.moe/p/some-useful-markdown-noting-codes/index.md)
- [广东话](https://blog.ous50.moe/yue-cn/p/some-useful-markdown-noting-codes/index.md)

