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

Tight list and attributes #200

Open
jgm opened this issue Jan 20, 2023 · 3 comments
Open

Tight list and attributes #200

jgm opened this issue Jan 20, 2023 · 3 comments

Comments

@jgm
Copy link
Owner

jgm commented Jan 20, 2023

{.outer-style}
* a

  {.inner-style}
  * b
* c

Ideally the use of the "inner-style" attribute wouldn't force the outer list to be loose. (If you remove the {.inner-style} line, the outer list becomes tight, but the presence of attributes shouldn't affect tight/loose calculations like this.)

@vassudanagunta
Copy link
Contributor

My proposal in #201 would solve this conundrum.

@criloz
Copy link

criloz commented Sep 15, 2024

@jgm I have noticed that when inline attributes are between white space the parser does nothing with them, example https://djot.net/playground/

So a possible solution is to attach the inline attributes within whitespace to their ancestor paragraph, and it will solve this issue too

* a {.outer-style}
  * b {.inner-style}
* c

@jgm
Copy link
Owner Author

jgm commented Sep 15, 2024

to attach the inline attributes within whitespace to their ancestor paragraph

I think this issue is about attaching attributes to lists, not paragraphs within lists.

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

3 participants