Skip to content

[FR]: When inserting a callout, merge the quote below (if any) #32

Description

@Moyf

Problem or use case

Hi, this might be related to our discussion in #20

Sometimes, there’s already a Quote block, and I want to convert it into a Callout.
But when I perform this action using Keyshots, it adds extra line breaks, forcing me to manually delete them to merge the content properly:

Image

Solution

So I was wondering if we could add a feature:
If the current line or the next line starts with a quote (text beginning with > ),

then only insert the > [!note] part, so that it can combine with the existing content to form a callout?

Additional context

If you're interested, I’d be happy to submit a PR for this.

Also, if we decide to implement it, would you prefer adding this feature directly, or adding an optional toggle like “Merge existing quote”?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions