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

Problems adding escaped pipes in tables #46

Open
notslang opened this issue Feb 9, 2017 · 1 comment
Open

Problems adding escaped pipes in tables #46

notslang opened this issue Feb 9, 2017 · 1 comment

Comments

@notslang
Copy link
Owner

notslang commented Feb 9, 2017

From @derek-austin in notslang/atom-tidy-markdown#62

Please add an option to disable HTML escapes substitution

Use case for the option:

If you have 'Run on Save' and save this

Command | Description
------- | ------------------------
ls      | list directory contents 
ls | wc | count directory contents
ls \| wc | count directory contents
ls | wc | count directory contents 

you get this

Command | Description
------- | ------------------------
ls      | list directory contents
ls      | wc                       | count directory contents
ls \    | wc                       | count directory contents
ls | wc | count directory contents

if you save it again you get this:

Command | Description
------- | -----------------------
ls      | list directory contents
ls      | wc                      | count directory contents
ls \    | wc                      | count directory contents
ls      | wc                      | count directory contents

If you disable the HTML escape substitution you could use the | hack to render the table.

@notslang
Copy link
Owner Author

notslang commented Feb 9, 2017

...and that shouldn't just be an option, that should just be the default behavior. Passing already "cleaned" markdown through tidy-markdown should never result in it being changed.

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