retour

Exemple de Post

23.07 2002

Par Calix Monnet.

Markdown is a lightweight markup language based on plain text. It’s used for writing formatted documents in plain text and is known for its easy and simple syntax compared to traditional markup languages.

This post documents how I utilize Markdown in this blog.

h2 Minimalism

As a frontend developer, I want to convey something through layout. I hope the text feels comfortable to the reader.

That’s why I value the beauty of whitespace. Pages crammed with content make reading unpleasant. I often leave a page after just glancing at the title.

Here are some hidden details of the layout:

h3 Titles

This blog uses only h2 and h3 titles. It’s to maintain the beauty of Semantic HTML. (Occupational hazard)

Basic Elements

Quotations use Serif typeface. Even the font itself makes the quoted text seem significant!

Serif typeface can be used within the text too. However, it’s not recommended as it disrupts the balance of the text.

<mark></mark> can be used to highlight text.

Links have a subtle underline and minimal hover effects. Bold links are more eye-catching. External links generate an icon indicating “a new tab will open.” https://github.com/bepyan By default, links are automatically parsed.

The division line is subtle and not too prominent. It’s not frequently used as there’s enough spacing overall.


List

Ordered List

  1. An amendment to the Constitution may be proposed by a majority of the members of the National Assembly or by the President.
  2. The military shall have the sacred duty of national security and national defense, and its political neutrality shall be maintained.

Code Blocks

inline code [1, 2, 3]{:js}

Block code
import clsx, { type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}
import '~/styles/globals.css';

import type { Metadata } from 'next';

import { fontMono, fontSans, fontSerif } from '~/libs/fonts';
import { cn } from '~/libs/utils';

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="ko" suppressHydrationWarning>
      <body
        className={cn(
          'bg-background min-h-screen font-sans antialiased',
          fontSans.variable,
          fontSerif.variable,
          fontMono.variable,
        )}
      >
        <div className="blur" aria-hidden="true"></div>
        <div className="max-w-page container mx-auto pt-32">
          <div className="main-grid">{children}</div>
        </div>
      </body>
    </html>
  );
}

Table

EmotionDescription
JoyPleasure, Joy, Happiness, Delight. The pleased and satisfied feeling when a desire is fulfilled.
SadnessFeeling heartache and pain upon encountering or witnessing a pitiable or regrettable event.
FunA feeling of being cheerful and happy without any annoyance.
PleasurePleasantness and enjoyment. Or the feeling of it.
ComfortComfort in both body and mind.
DelightJoy and pleasure. Or the act of being joyful and enjoying.
LeftCenterRight
ABC

Image

![Image Description](Link)