title: How can I get suggestions (registerCompletionItemProvider) to show between curly braces in for Markdown in Monaco?
body: <p>When I create a completion item provider in Monaco for Markdown I'm unable to create suggestions for text between curly braces {}</p>
  
  <p>i.e. <code>{ typing in here won't launch the suggestions widget }</code></p>
  
  <p>I get that braces are reserved keywords in Markdown and are auto-closed in Monaco by default. Even if auto closing is off, once there is a matching ending curly brace autocomplete won't work.</p>
  
  <p>Is there an option to make this work? Or will I have to make a new language that is basically a copy of Markdown that doesn't register curly braces as a bracket?</p>
  
  <p>Here's a monaco editor playground snippet that shows this issue</p>
  
  <pre><code>monaco.languages.registerCompletionItemProvider('markdown', {
      provideCompletionItems: function() {
          return {
              suggestions: [
                  {
                      label: "random_number",
                      insertText: "random_number"
                  },
                  {
                      label: "now",
                      insertText: "now"
                  },
                  {
                      label: "today",
                      insertText: "today"
                  },
              ]
          };
      }
  });
  
  monaco.editor.create(document.getElementById("container"), {
      value: "# hello.\n{autocomplete doesn't work between braces: }\nbut it works outside: ",
      language: "markdown"
  });
  
  </code></pre>
  
  <h2>Edit</h2>
  
  <p>Bit more info: it's possible the reason suggestions aren't launching is that Markdown treats anything between curly braces { } as a token and colors it. </p>
  
  <p><a href="https://github.com/microsoft/monaco-languages/blob/618f2cff2d8e72f04fe9d63085a0c5118b80e8a0/src/markdown/markdown.ts#L143" rel="nofollow noreferrer">https://github.com/microsoft/monaco-languages/blob/618f2cff2d8e72f04fe9d63085a0c5118b80e8a0/src/markdown/markdown.ts#L143</a></p>
  
  <p>Not clear why this is necessary though. </p>