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

More customization to blockquotes from Djot #117

Open
Omikhleia opened this issue Dec 30, 2024 · 1 comment · May be fixed by #118
Open

More customization to blockquotes from Djot #117

Omikhleia opened this issue Dec 30, 2024 · 1 comment · May be fixed by #118
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Omikhleia
Copy link
Owner

With Omikhleia/markdown.sile#139, Djot attributes are passed to the blockquote implementation.

See Omikhleia/markdown.sile#138 for the rationale.

What to make out of it in resilient and its styling paradigm remains to be considered.

Perhaps this could be similar, minimally, to what we did for term-definition lists = a "variant" option to pick a different (sub)-style.

@Omikhleia Omikhleia added enhancement New feature or request question Further information is requested labels Dec 30, 2024
@Omikhleia
Copy link
Owner Author

Omikhleia commented Jan 11, 2025

The proposal could be the following...

Djot input:

{variant=continuous}
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor.
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor.

Resilient style:

blockquote-continuous:
  inherit: "blockquote"
  style:
    paragraph:
      before:
        indent: false

image

Of course which such a mechanism, one can define any style blockquote-xxx in their resilient style file (even possibly not inheriting the blockquote style, and doing other fancy/unexpected stuff).

Another "reasonable" example:1

blockquote-meh:
  inherit: "blockquote"
  style:
    font:
      style: "italic"
    color: darkolivegreen
    paragraph:
      before:
        indent: false

image

Footnotes

  1. Well, color here raises another issue (unrelated) with Djot/Markdown input, but that's another topic for a new typesetter (i.e. how leading is currently implemented)

@Omikhleia Omikhleia added this to the 2.7.0 milestone Jan 11, 2025
@Omikhleia Omikhleia removed the question Further information is requested label Jan 11, 2025
@Omikhleia Omikhleia self-assigned this Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant