djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
686 stars 84 forks source link

[FEATURE] Documentation formatting seems to go wrong #713

Closed KommuSoft closed 1 year ago

KommuSoft commented 1 year ago

Feature Request: improve the documentation render engine

The documentation file has hyphens for the template tags, indeed: https://github.com/Riverside-Healthcare/djLint/blob/07dfbad680856845f0d4ecbf399e40f230d16c80/docs/src/docs/best-practices.md?plain=1#L15-L22

it here likely writes {% if condition -%} to prevent the render engine from interpreting the {% if condition %} itself, but likely the render engine should remove the hyphens in the documentation online: https://djlint.com/docs/best-practices/

welcome[bot] commented 1 year ago

Thanks for opening your first issue here!

christopherpickering commented 1 year ago

Thanks yeah it looks like the markdown parser or something is removing the spaces. I'll reopen to check that. The dashes in there are for jinja and nunjucks.

christopherpickering commented 1 year ago

:tada: This issue has been resolved in version 1.32.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: