Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

bug: need to fill in the MarkdownStyleSheet decorations #66

@csells

Description

@csells

The LlmMessageStyle has embedded a MarkdownStyleSheet. It has values for the important things except these four decorations:

  • blockquoteDecoration
  • codeblockDecoration
  • horizontalRuleDecoration
  • tableCellsDecoration

These should be set in the lightStyles method and inverted in the darkStyles method like so:

        blockquoteDecoration:
            sh.invertDecoration(markdownStyle.blockquoteDecoration),
        codeblockDecoration:
            sh.invertDecoration(markdownStyle.codeblockDecoration),
        horizontalRuleDecoration:
            sh.invertDecoration(markdownStyle.horizontalRuleDecoration),
        tableCellsDecoration:
            sh.invertDecoration(markdownStyle.tableCellsDecoration),

Otherwise, when these decorations are used, they'll be whatever default they are and not a) match the styles of the LlmChatView and b) won't switch to dark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions