Blog
Yazı Tipi
Metin Boyutu
Satır Aralığı
Genişlik
Enhanced Blog Features Test

Enhanced Blog Features Test

A comprehensive test post showcasing all the new blog features including KaTeX math, interactive components, and media embeds.


This post demonstrates all the enhanced blog features. Use the text arrangement toggle in the header to customize your reading experience with different fonts, text sizes, line heights, and content widths.

Callout Cards

Use callout cards to highlight important information, warnings, tips, and more.

Information

This is an informational callout. Use it to provide additional context or details that readers might find helpful.

Pro Tip

Use keyboard shortcuts to navigate faster! Press Ctrl + K to open the command palette.

Warning

Be careful when modifying configuration files. Always backup your data before making changes.

Critical

Never share your API keys or passwords in public repositories. This can lead to security breaches.

Well Done!

You’ve successfully completed the setup process. Your application is now ready to use.

Note

This feature is available in version 2.0 and above. Check your version before proceeding.

Mathematical Equations with KaTeX

One of the most powerful features is full LaTeX math support [1] . You can write inline math like E=mc2E = mc^2 or the quadratic formula x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} directly in your text.

For more complex equations, use display mode:

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}

Here’s the famous Euler’s identity:

eiπ+1=0e^{i\pi} + 1 = 0

And a matrix example:

[abcd][xy]=[ax+bycx+dy]\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} ax + by \\ cx + dy \end{bmatrix}

Calculus Example

The derivative of a function using the limit definition:

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

Interactive Concept Checks

Test your understanding with interactive questions. Click on the answer area to reveal the solution!

?

What is the time complexity of binary search?

O(log n) - The search space is halved with each iteration, leading to logarithmic time complexity [2] . For an array of 1 million elements, binary search needs at most 20 comparisons.

?

What does the Big O notation O(n) mean?

Linear time complexity - The algorithm’s running time grows linearly with the input size. If you double the input, the time roughly doubles as well.

?

In the equation ax2+bx+c=0ax^2 + bx + c = 0, what is the discriminant? The discriminant is Δ=b24ac\Delta = b^2 - 4ac. It determines the nature of the roots:

  • If Δ>0\Delta > 0: Two distinct real roots
  • If Δ=0\Delta = 0: One repeated real root
  • If Δ<0\Delta < 0: Two complex conjugate roots

Video Embeds

Easily embed YouTube and Vimeo videos with privacy-enhanced URLs:

YouTube Video

Sample YouTube Video

Vimeo Video

Sample Vimeo Video

Single Image

You can also display a single image with a caption:

A beautiful mountain landscape
A beautiful mountain landscape during sunset

Display images in a beautiful grid with lightbox support. Click any image to view it in fullscreen!

Typography and Text Formatting

The enhanced blog layout includes improved typography with proper heading hierarchy and spacing.

Code Blocks

function binarySearch(arr, target) {
  let left = 0;
  let right = arr.length - 1;

  while (left <= right) {
    const mid = Math.floor((left + right) / 2);

    if (arr[mid] === target) {
      return mid;
    } else if (arr[mid] < target) {
      left = mid + 1;
    } else {
      right = mid - 1;
    }
  }

  return -1;
}

Blockquotes

The only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle.

— Steve Jobs

Lists

Unordered list:

  • First item with some additional text to show wrapping
  • Second item
  • Third item with bold and italic text

Ordered list:

  1. First step in the process
  2. Second step with more details
  3. Third step to complete the task

Table of Contents

Notice the floating table of contents on the left side (on desktop). It highlights the current section as you scroll and allows quick navigation to any heading.

On mobile devices, you’ll find a collapsible TOC dropdown at the top of the article.

Reading Preferences

Click the text icon (Aa) in the header to customize:

  • Font: Switch between Sans-serif and Serif fonts
  • Line Height: Choose Compact, Normal, or Relaxed spacing
  • Width: Select Narrow, Normal, or Wide content width

Your preferences are saved and will persist across sessions!

Conclusion

This enhanced blog layout provides a modern, feature-rich reading experience with:

  • Full KaTeX/LaTeX math support
  • Interactive concept check components
  • Video embeds for YouTube and Vimeo
  • Photo galleries with lightbox
  • Floating table of contents
  • Customizable text arrangement
  • Improved typography and spacing

All features work seamlessly across light, dark, and paper themes.

Citations and References

You can add citations to your text using the Cite component [3] . Each citation links to the corresponding reference at the bottom of the page.

References

  1. Knuth, Donald E. (1984) The TeXbook Addison-Wesley
  2. Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2009) Introduction to Algorithms MIT Press
  3. Gruber, John (2004) Markdown: Syntax

(0)