1
0
Fork 0
why-cant-we-deploy-today/plugin/markdown
John Kristensen ae652a8e4e Correctly strip leading white-space from markdown
If the markdown contains something that is indented by more that the
`leadingTabs`/`leadingWs` then extra white space is incorrectly removed.
ie the following example:

```
    <section data-markdown>
    some text
       indented text
          more indented text
    </section>
```

would result in the following markdown:

```
some text
   indented text
  more indented text
```

We can work around this problem by using a function to generate the
replace value.
2023-02-02 13:27:52 +01:00
..
markdown.esm.js Correctly strip leading white-space from markdown 2023-02-02 13:27:52 +01:00
markdown.js Correctly strip leading white-space from markdown 2023-02-02 13:27:52 +01:00
plugin.js Correctly strip leading white-space from markdown 2023-02-02 13:27:52 +01:00