iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🕌

Getting Started with Obsidian (v2.00)

に公開

Introduction

I have updated To those starting with Obsidian, which I wrote two years ago, to v2.00!

I think it would be useful to copy the following text and use it as a sample source.

# Obsidian Sample Code

---

## Basic Syntax
This is basic Markdown syntax.

### Lists
- Bulleted list
	- Nested
1. Numbered list
	1. Nested
- [ ] Task list
	- [ ] Nested

### Emphasis
- **Bold**
- *Italic*
- ~~Strikethrough~~
- ==Highlight==

### Links
- Internal link:  [[Sample code]]
- External link: [Google](https://google.com)

### Code blocks
- Inline code: `Sample Code`
- Block code: Surround with backticks (```) for blocks


---

## Tables (Advanced Tables plugin)

| Item   | Value | Remarks      |
| ------ | ----- | ------------ |
| Sample | 100   | Sample data  |
| Test   | 200   | Test data    |

---

## Templates (Templater plugin)
Execution is not possible without configuring Templater settings.

- Created Date:  <% tp.date.now() %>
- Title: <% tp.file.title %>
- Custom Prompt: <% tp.prompt("Please input:") %>

---

## Math Formulas (LaTeX)
This section is designed to make mathematical expressions easy to understand and highly practical.

### Inline Math
- Convenient for incorporating into actual sentences.
- Example: $\sum_{i=1}^n i = \frac{n(n+1)}{2}$

### Block Math
- Used when emphasizing formulas independently.
- Example:
$$
E=mc^2
$$

### Application Examples: Matrices and Systems of Equations

Matrices and complex expressions can be represented concisely.

#### **Matrix Representation**

$$
A = 
\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
$$


#### **System of Equations**

$$
\begin{cases}
ax + by = c \\
dx + ey = f
\end{cases}
$$

### Custom Example: Colorful Formulas
Utilizing LaTeX's `\textcolor` to add color is useful for highlighting.


$$
\textcolor{red}{E} = \textcolor{blue}{m}c^2
$$


---

## HTML Customization

By embedding HTML in Markdown, you can expand the range of design.



### Centering + Color + Size Adjustment
- Improve design using HTML styles.

<div style="text-align: center; color: blue; font-weight: bold; font-size: 24px;">
    Blue + Large Text
</div>

<br><br>

### Application: Shadowed Box Design
- It is possible to make it stand out by adding box shadows and padding.

<div style="border: 2px solid #444; padding: 20px; border-radius: 10px; box-shadow: 5px 5px 10px rgba(0,0,0,0.2);">
    Enhanced design box
</div>

<br><br>

### Mobile Support: Variable Width Responsive Design
- Achieve variable width using **`width: 100%`**.

<div style="text-align: center; color: #fff; background-color: #555; padding: 10px; border-radius: 5px; width: 100%;">
    Variable width responsive box
</div>


Appearance in Obsidian

Discussion