Skip to content

Apply underline as span attribute #17

@vecerap

Description

@vecerap

Problem

When used underline on color span decorated text like so: <u><span style="color:rgb(255, 0, 0)">example text</span></u>

the output looks like:

Image

Instead, apply text-decoration: underline attribute for span like so: <span style="color:rgb(255, 0, 0);text-decoration: underline">example text</span>

Image

Notice the underline has same color as span text color, which is better looking.

Consider

This behavior could be toggled in plugin's settings

Multi span regions

When selection contains span regions, the plugin should then split underline sections.

for this line:
Lorem ipsum dolor <span style="color:rgb(255, 0, 0)">sit amet</span>, consectetur adipiscing elit. Curabitur eget dolor

Image

Should be split like so after underline command:
<u>Lorem ipsum dolor </u><span style="color:rgb(255, 0, 0);text-decoration: underline">sit amet</span><u>, consectetur adipiscing elit. Curabitur eget dolor</u>

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions