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

Add natural blocks as first class concepts to P and P #194

Open
breck7 opened this issue Dec 3, 2024 · 0 comments
Open

Add natural blocks as first class concepts to P and P #194

breck7 opened this issue Dec 3, 2024 · 0 comments

Comments

@breck7
Copy link
Owner

breck7 commented Dec 3, 2024

A pattern that has proved very useful in Scroll is blocks. We can upstream that to the Particles libary.
Blocks are, sequences of particles separated by blank particles.

this is
a block

and this is another block

Some methods might be:

get blocks() {}

We could also add block parsing logic to Parsers. The default would be all parsers in scope for all blocks. But then we could have something like blockScope 0, for top matter blocks, etc

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