imba / imba/imba.io

Hiding end of code with `# ---` adds padding to bottom of snippet

Open
#253 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
83
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Only happens if there are two.

image

````
# ---
const myTodo = new Todo title: 'Learn Imba'
myTodo.complete()
console.log myTodo
# ---
````

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the website's code-snippet rendering path using the provided example with two `# ---` markers. Trace how the markers affect the rendered snippet height; done when the example no longer gains extra bottom padding.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.