Skip to content

Text-formatting not supported #2

@template01

Description

@template01

Hi,

I know this plugin has not been updated in a long time. However a cool feature would be support for inline text-formatting. As of now all formatting (strong, italic, headings, etc.) is ignored in the html-export.

To my understanding this happens because the getLineHTMLForExport.text does not return the text/content with actual formatting tags. However getLineHTMLForExport.lineContent does. This then becomes a question of 'offsetting' the charPos according to tag. Here i'm running against the wall.

original:

newLineHTML += _getHTMLString(authorName, color, context.text.substring(charPos, charPos + author.chars));

using lineContent:

newLineHTML += _getHTMLString(authorName, color, context.lineContent.substring(charPos, charPos + author.chars));

Any ideas?

Thanks and Cheers,

Lasse

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