Skip to content

Instantly share code, notes, and snippets.

@skkzsh
Last active November 19, 2024 16:59
Show Gist options
  • Save skkzsh/0dc8183ac282e34625ee4e19ecd5579b to your computer and use it in GitHub Desktop.
Save skkzsh/0dc8183ac282e34625ee4e19ecd5579b to your computer and use it in GitHub Desktop.
org-mode syntax

Note

Note

Tip

Tip

Important

Important

Warning

Warning

Caution

Caution

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

This sentence uses `$` delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$

This sentence uses $` and `$ delimiters to show math inline: $`\sqrt{3x-1}+(1+x)^2`$

The Cauchy-Schwarz Inequality

$$\left( ∑k=1^n a_k b_k \right)^2 \leq \left( ∑k=1^n a_k^2 \right) \left( ∑k=1^n b_k^2 \right)$$

The Cauchy-Schwarz Inequality

$$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
Loading

wordsuperscript

wordsubscript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment