[all-commits] [llvm/llvm-project] 519948: [clangd] Improve Markup Rendering (#140498)

tcottin via All-commits all-commits at lists.llvm.org
Thu Jul 24 17:46:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51994891e3a28a999e30a915d9ac5c2102073576
      https://github.com/llvm/llvm-project/commit/51994891e3a28a999e30a915d9ac5c2102073576
  Author: tcottin <timcottin at gmx.de>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    M clang-tools-extra/clangd/ClangdLSPServer.cpp
    M clang-tools-extra/clangd/CodeComplete.cpp
    M clang-tools-extra/clangd/Config.h
    M clang-tools-extra/clangd/ConfigCompile.cpp
    M clang-tools-extra/clangd/ConfigFragment.h
    M clang-tools-extra/clangd/ConfigYAML.cpp
    M clang-tools-extra/clangd/Hover.cpp
    M clang-tools-extra/clangd/Hover.h
    M clang-tools-extra/clangd/support/Markup.cpp
    M clang-tools-extra/clangd/support/Markup.h
    A clang-tools-extra/clangd/test/signature-help-unescaped.test
    M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
    M clang-tools-extra/clangd/unittests/HoverTests.cpp
    M clang-tools-extra/clangd/unittests/support/MarkupTests.cpp

  Log Message:
  -----------
  [clangd] Improve Markup Rendering (#140498)

This is a preparation for fixing clangd/clangd#529.

It changes the Markup rendering to markdown and plaintext.

- Properly separate paragraphs using an empty line between
- Dont escape markdown syntax for markdown output except for HTML
- Dont do any formatting for markdown because the client is handling the
actual markdown rendering



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list