Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for no trim #1

Open
Tenchi2xh opened this issue Aug 20, 2020 · 0 comments
Open

Option for no trim #1

Tenchi2xh opened this issue Aug 20, 2020 · 0 comments

Comments

@Tenchi2xh
Copy link

Tenchi2xh commented Aug 20, 2020

Hi, like your project, very useful for generating docs!

I was wondering if it's possible to have a CLI flag for disabling trimming, as it may break some Markdown features.

For example, I have a script that generates a Markdown table, but on GitHub this doesn't work:

<!-- some comment -->Header 1|Header 2
:-----|:-----
row11|row12
row21|row22
...<!-- some other comment -->

whereas this works:

<!-- some comment -->
Header 1|Header 2
:-----|:-----
row11|row12
row21|row22
...
<!-- some other comment -->

For now I solved it by using version 1.0.0

Thanks for the cool tool!

EDIT: instead of a CLI option maybe it could be a parameter inside the command, for example

<!-- markdown-exec(cmd: echo '123', trim: false) --><!-- /markdown-exec -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant