Skip to content
MeanderingProgrammer edited this page Sep 13, 2024 · 3 revisions

Indent

Raw data being used:

# Heading 1

Some content.

## Heading 2

> [!NOTE]
> A callout note

### Heading 3

```python
print("Hello, World!")
```

## Heading 2

- List Item 1
- List Item 2
  - Nested List Item 1

### Heading 3

More content

#### Heading 4

| First | Second |
| :---- | ------ |
| Item  | Item   |

Default

require('render-markdown').setup({
    indent = {
        enabled = false,
        per_level = 2,
        skip_level = 1,
        skip_heading = false,
    },
})

Enabled

require('render-markdown').setup({
    heading = { border = true },
    indent = { enabled = true },
})

Skip Level

require('render-markdown').setup({
    heading = { border = true },
    indent = {
        enabled = true,
        skip_level = 0,
    },
})

Skip Heading

require('render-markdown').setup({
    heading = { border = true },
    indent = {
        enabled = true,
        skip_heading = true,
    },
})
Clone this wiki locally