listed icon indicating copy to clipboard operation
listed copied to clipboard

Listed's code highlighting does not work for list item

Open dmitriy-bodroff opened this issue 5 years ago • 5 comments

Listed's code highlighting does not work for list item.

It works for a paragraph.

image

And does not work for a list item.

image

Example URL: https://listed.to/@nablagodel/17333/timestamp-google

dmitriy-bodroff avatar Aug 12 '20 14:08 dmitriy-bodroff

Maybe there should be

.post-content code {
    font-family: Consolas, monaco, "Ubuntu Mono", courier, monospace !important;
    font-size: 0.75rem;
    line-height: 0.75rem;
    color: #c25;
    padding: 4px 8px;
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    border-radius: 3px
}

instead of

.post-content p code {
    font-family: Consolas, monaco, "Ubuntu Mono", courier, monospace !important;
    font-size: 0.75rem;
    line-height: 0.75rem;
    color: #c25;
    padding: 4px 8px;
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    border-radius: 3px
}

dmitriy-bodroff avatar Aug 12 '20 14:08 dmitriy-bodroff

Hmm, this could have been implemented on purpose, or there might have been a technical reason that prevented it from being implemented. The good news you can customize the CSS of your Listed blog with this guide! (Special thanks to @TheodoreChu for updating the docs.)

cc: @mobitar

JaspalSuri avatar Aug 13 '20 09:08 JaspalSuri

Okay, I have made the fix for my blog.

image

dmitriy-bodroff avatar Aug 13 '20 15:08 dmitriy-bodroff

Thanks for letting us know that it's working! I've forwarded your suggestion to the dev team for review as well. :)

JaspalSuri avatar Aug 14 '20 06:08 JaspalSuri

doing .post-content code breaks multiline code. It should be li code or something like that.

RemiDesgrange avatar Sep 07 '20 16:09 RemiDesgrange