Open pauleveritt opened 7 years ago
I've confirmed that is a bug.
1. Some step
```js
var a = 1;
```
2. Next step
[import, hello-world.js](../src/hello-world.js)
3. Last step
to be
Is there any hope that this will get fixed soon?
Trying to propose an analysis and propose a solution. Azu: please see if the solution looks good. If it sounds good I'll write a patch.
Analysis:
```{{lang}}
{{{content}}}
```
So we need to indent both {{{code}}}
and ```
Proposed solution:
Change the template to the following:
{{indent}}```{{lang}}
{{{indented_content}}}
{{indent}}```
Users should put spaces, i.e. [ \t]*, before the [include...]()
tag to add indents.
For markdown pages, {{indent}} becomes the exact spaces added before the [include]
tag.
For AsciiDoctor pages, {{indent}} is always nothing so users don't add indents by mistake.
{{{indented_code}}}
is the code indented with {{indent}}
at the beginning of each line.
I'm trying to do an include in the middle of a sequence of steps:
The image gets included without breaking the numbering. But the include makes "Last step" closes the preceding list with
</ol>
, then inserts a<pre>
, then starts a new<ol>
.