pastelog
pastelog copied to clipboard
Markdown Rendering Issues
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)
- [ ] 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
- [x] inline code in a heading has inappropriate height
Perhaps css should fix this
## **2️⃣ Bitwise OR (`or`)**
Expected:
2️⃣ Bitwise OR (or)
Actual
- [ ] Markdown should respect line break
Add a multiple empty lines has no effect in markdown