Skip to content

Newlines not properly rendered on webpage #198

@TomCasavant

Description

@TomCasavant

Basically on the bookmark page it combines all the text into a large paragaph (but the activityPub post is still properly creating the newlines)

I think the issue is here:

postmarks/server.js

Lines 59 to 63 in 58d1ca1

htmlize(text) {
// uh-oh. ohhhh no.
const returnText = escapeHTML(text);
return returnText?.replace('\n', '<br/>');
},

I changed it to
return returnText?.replace(/\n/g, '<br/>');
to replace all newlines with the <br /> and that seems to have fixed it but I haven't looked at escapeHTML (I would think it would parse the newlines properly but I guess not)

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