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

Immediately issue auto-detection when changing block mode to Auto-detect #113

Open
steobrien opened this issue Jan 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@steobrien
Copy link

If I type the following, it’s auto-detected as Plain Text, not Markdown:

# This is some example markdown

## Subheading

I would expect it to be recognized:
- a list
- goes here
- and here

## Another

Or *how* about some _inline_ formatting? It doesn’t seem to do it.

Manually running auto-detect doesn't seem to fix it.

However, if I paste it fresh into a new block, it is correctly detected as Markdown.

@heyman
Copy link
Owner

heyman commented Jan 12, 2024

The problem here is that selecting Auto-detect doesn't actually trigger an auto-detection immediately. It turns on auto-detection for the block (by changing its mode to Plain Text (auto)), but the auto-detection won't be triggered until a significant change to the content has been made.

I think it's okay that selecting Auto-detect changes the block mode to Plain Text (auto) (because you wouldn't select auto-detect if you were happy with the current mode, and plain text is a good default fallback), but when Auto-detect is selected, Heynote should immediately issue an auto-detection.

@heyman heyman changed the title Markdown auto-detection is flaky Immediately issue auto-detection when changing block mode to Auto-detect Jan 12, 2024
@heyman heyman added the bug Something isn't working label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants