Giter Site home page Giter Site logo

Comments (6)

JPinkney avatar JPinkney commented on May 27, 2024

This behaves in the same way as vscode json where the language server escapes the markdown. According to json spec for description it doesn't say it should be markdown (nor does it say it shouldn't) so its escaped. In the case of vscode json it looks like they added a custom field called markdownDescription. Heres the vscode json discussion

from yaml-language-server.

gorkem avatar gorkem commented on May 27, 2024

@JPinkney Do we support markdownDescription on our schemas?

from yaml-language-server.

JPinkney avatar JPinkney commented on May 27, 2024

Yes we do. We have markdownDescription and markdownEnumDescriptions available to render markdown.

from yaml-language-server.

felixfbecker avatar felixfbecker commented on May 27, 2024

So I just have to add markdownDescription to the schema in addition to description?

from yaml-language-server.

JPinkney avatar JPinkney commented on May 27, 2024

markdownDescription is an alternative to description. This was the gist I was playing around with

from yaml-language-server.

felixfbecker avatar felixfbecker commented on May 27, 2024

Are they exclusive? I would be worried about only providing markdownDescription because probably not all clients support it

from yaml-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.