foundation / foundation/panini

[question] Multi-line code blocks within {{#code}} helper

Open
#110 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
593
Forks
104
PR merge metrics
No merged PRs in 30d

Description

Trying to use the `{{#code}}` helper for a documentation page which has several multi-line code blocks.
Syntax highlighting works as expected good but Indentation gets messed up.

This
```Handlebars



{{#code "JSON"}}
{
"key": 2;
"key2": "value";
}
{{/code}}

```
Renders this:
![image](https://d3uepj124s5rcx.cloudfront.net/items/3t3P2y1g1i3N430I1E3W/Image%202017-03-22%20at%203.34.06%20PM.png?v=0be7f062)

Putting the whole block unindented
```Handlebars



{{#code "JSON"}}
{
"key": 2;
"key2": "value";
}
{{/code}}

```

Only removes first line whitespace
![otherimage](https://d3uepj124s5rcx.cloudfront.net/items/1E2K3A0y2z0z1L3i2Q1J/Image%202017-03-22%20at%203.40.19%20PM.png?v=44cfbe41)

Any suggestion/help on how to workaround this or if i'm doing something wrong with the content?
Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.