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

Hydrogen cannot detect the current code block in pweave md. #6

Open
duzaichuan opened this issue Oct 3, 2017 · 1 comment
Open

Comments

@duzaichuan
Copy link

screen shot 2017-10-03 at 14 34 59

Hydrogen can only run the line that cursor in, but not the current block. Also similar problem happens when the block title is selected.

screen shot 2017-10-03 at 14 33 34

screen shot 2017-10-03 at 14 25 42

Can these be fixed?

Thanks~

@kylebarron
Copy link
Contributor

It's highly unlikely that could be fixed. I believe that Hydrogen uses the language scopes to determine which language you're trying to run. Since your selection begins outside of the scope named embedded.python, Hydrogen doesn't know what you're trying to do.

If you select only the inside of the block, it should work.

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

2 participants