Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML in Content Assist is not rendered #320

Closed
tweksteen opened this issue Jun 19, 2020 · 2 comments
Closed

HTML in Content Assist is not rendered #320

tweksteen opened this issue Jun 19, 2020 · 2 comments

Comments

@tweksteen
Copy link
Contributor

Apologies if the terminology is not exact, I'm not sure how Eclipse names the auto-completion window. A screenshot is easier to understand:

editor_xml

In this case the language server (rust-analyzer, #315) provides the definition in Markdown format:

[...]
{"additionalTextEdits":[],
 "deprecated":false,
 "detail": "pub fn memchr2(needle1: u8, needle2: u8, haystack: &[u8]) -> Option<usize>",
 "documentation":
  {"kind":"markdown","value":"Like `memchr`, but searches for either of two bytes instead of just one.\n\nThis returns the index corresponding to the first occurrence of `needle1`\nor the first occurrence of `needle2` in `haystack` (whichever occurs\nearlier), or `None` if neither one is found.\n\nWhile this is operationally the same as something like\n`haystack.iter().position(|&b| b == needle1 || b == needle2)`, `memchr2`\nwill use a highly optimized routine that can be up to an order of magnitude\nfaster in some cases.\n\n# Example\n\nThis shows how to find the first position of either of two bytes in a byte\nstring.\n\n```rust\nuse memchr::memchr2;\n\nlet haystack = b\"the quick brown fox\";\nassert_eq!(memchr2(b'k', b'q', haystack), Some(4));\n```"}

The translation from Markdown to HTML is correctly done by Eclipse (or Corrosion), but it is not rendered.

@mickaelistria
Copy link
Contributor

This is generally supposed to work, and working with some other language servers (like the ones in Wild Web Developer).
Is your internal Eclipse browser (used for HTML rendering) properly configured and working? Ie if you open the "Browser" view of the IDE, is it functional?

@tweksteen
Copy link
Contributor Author

No, that's right, my internal web browser was not setup properly. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants