pastelog icon indicating copy to clipboard operation
pastelog copied to clipboard

Markdown Rendering Issues

Open maheshj01 opened this issue 1 year ago • 3 comments

This issue is a consolidated list of issues when rendering markdown

  • [x] Line break not working on a single \n
  • [x] inline code showing back tick
  • [ ] Related to Issue #28: inline code issue during image generation
  • [x] Horizontal rule line not showing (--- should add a line) (seems like a color issue)

maheshj01 avatar Jun 27 '24 21:06 maheshj01

  • [ ] For tables use remarkgfm

sample markdown

🔥 Kotlin Null Safety Cheat Sheet 🔥

Feature Syntax Description
Non-Nullable Variable var name: String = "Kotlin" Cannot be null.
Nullable Variable var name: String? = "Kotlin" Can be null.
Safe Call Operator name?.length Returns null if name is null.
Elvis Operator name?.length ?: 0 Provides a default value if null.
Safe Casting val str: String? = obj as? String Returns null if casting fails.
Non-Null Assertion name!!.length Throws NPE if name is null.
let Scope Function name?.let { println(it.length) } Executes only if name is not null.
lateinit for Deferred Initialization lateinit var name: String Used for non-null variables initialized later.
by lazy Initialization val name: String by lazy { "Kotlin" } Initialized only when accessed.
Filter Nulls in Collection list.filterNotNull() Removes null values from a list.

see: https://github.com/hashicorp/next-mdx-remote/issues/403

maheshj01 avatar Mar 26 '25 20:03 maheshj01

  • [x] inline code in a heading has inappropriate height

Perhaps css should fix this

## **2️⃣ Bitwise OR (`or`)**

Expected:

2️⃣ Bitwise OR (or)

Actual

Image

maheshj01 avatar Apr 09 '25 23:04 maheshj01

  • [ ] Markdown should respect line break

Add a multiple empty lines has no effect in markdown

maheshj01 avatar Aug 10 '25 23:08 maheshj01