Skip to content

Support inline rendering or unwrap: 'p' for single-line rendering #254

Description

@maximepvrt

Description

Comark lacks a way to force inline rendering or unwrap <p> tags (the MDC unwrap="p" behavior). Currently, I have no option to migrate this use case because autoUnwrap keeps the <p> on single lines in <UButton><Comark :markdown="text" /></UButton>, which breaks button layouts (previously written as <UButton><MDC :value="text" unwrap="p" /></UButton>).

Implementing either an inline prop or an unwrap option could solve this:

<UButton><Comark :markdown="text" inline /></UButton>
<UButton><Comark :markdown="text" :options="{ unwrap: 'p' }" /></UButton>

Motivation

x

Proposed solution

No response

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions