Introduction to Markdown and LaTeX

December 15, 2023 at 02:30 PM
John Doe

Markdown Basics

This is a sample article demonstrating Markdown rendering with bold text, italic text, and links.

Code Examples

Here's a JavaScript code example:

JAVASCRIPT
1function greet(name) { 2 return `Hello, ${name}!`; 3} 4 5console.log(greet('World'));

And here's some Python:

PYTHON
1def factorial(n): 2 if n == 0: 3 return 1 4 else: 5 return n * factorial(n-1) 6 7print(factorial(5)) # Output: 120

LaTeX Math Formulas

Inline math: E=mc2E = mc^2

Display math:

fx=limh0f(x+h)f(x)h\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h} abf(x)dx=F(b)F(a)\int_{a}^{b} f(x) \, dx = F(b) - F(a) A=(a11a12a13a21a22a23a31a32a33)A = \begin{pmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{pmatrix} ddxxn=nxn1ddxsinx=cosxddxcosx=sinxddxex=exddxlnx=1x\begin{aligned} \frac{d}{dx}x^n &= nx^{n-1} \\ \frac{d}{dx}\sin x &= \cos x \\ \frac{d}{dx}\cos x &= -\sin x \\ \frac{d}{dx}e^x &= e^x \\ \frac{d}{dx}\ln x &= \frac{1}{x} \end{aligned}

Lists

Unordered list:

  • Item 1
  • Item 2
    • Nested item
  • Item 3

Ordered list:

  1. First step
  2. Second step
  3. Third step

Tables

NameAgeOccupation
John28Developer
Jane32Designer
Bob45Manager

Blockquotes

This is a blockquote. It can span multiple lines.

Images

Sample Image