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

M-x indent-region suppress indentation of code block #228

Closed
maanuair opened this issue Jul 26, 2017 · 1 comment
Closed

M-x indent-region suppress indentation of code block #228

maanuair opened this issue Jul 26, 2017 · 1 comment
Labels

Comments

@maanuair
Copy link

Hello there,

Thank-you for mardown-mode!
Given this sample markdown file in Emacs (v25.1.1, macOS 10.12, mardown-mode 2.1):

Here follows a code sample:

    #!/bin/bash
    echo foobar

Nice sample, isn't it ?

When I run M-x indent-region, the indentation of the code block disappears, turning it back to regular text, as follows:

Here follows a code sample:

#!/bin/bash
echo foobar

Nice sample, isn't it ?

In my case, I did remove my (add-hook 'before-save-hook 'reformat) from my init file (reformat is a function that invokes indent-region), but I guess this is unexpected behavior.

Unless I miss something here?

@syohex
Copy link
Collaborator

syohex commented May 9, 2020

I have merged #480. Please check latest version.

@syohex syohex closed this as completed May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants