title: How to convert markdown to HTML automatically in TinyMCE after copy and paste?
body: <p>In the text editor, when the content with syntax is pasted, the conversion from markdown to HTML doesn't occur automatically. Instead, the <strong>enter</strong> key should be hit for each line before conversion.</p>
  <p>For example, when I copy the text shown below and paste it to the TinyMCE text editor. Nothing really happens. I have to go through each line of text and hit <strong>enter</strong> to trigger the conversion.</p>
  <p><em><strong>What's shown in text editor:</strong></em></p>
  <pre><code># Middleware
  
  # Fundamentals
  
  ## Basis
  </code></pre>
  <p><em><strong>What I expect to see in text editor:</strong></em></p>
  <h1>Middleware</h1>
  <h1>Fundamentals</h1>
  <h2>Basis</h2>
  <p><em><strong>Setup</strong></em></p>
  <pre><code> tinymce.init({
          selector: '#summary',
          resize:false,
          branding: false,
          removed_menuitems: 'print',
          plugins:'wordcount autosave quickbars link textpattern',
          textpattern_patterns:[
            {start: '*', end: '*', format: 'italic'},
            {start: '**', end: '**', format: 'bold'},
            {start: '#', format: 'h1'},
            {start: '##', format: 'h2'},
            {start: '###', format: 'h3'},
            {start: '####', format: 'h4'},
            {start: '#####', format: 'h5'},
            {start: '######', format: 'h6'},
            {start: '1. ', cmd: 'InsertOrderedList'},
            {start: '* ', cmd: 'InsertUnorderedList'},
            {start: '- ', cmd: 'InsertUnorderedList'},
            {start: '//brb', replacement: 'Be Right Back'}
          ],
          toolbar: &quot;undo redo | blocks | bold italic |alignleft aligncenter alignright alignjustify | indent outdent |import&quot;
  })
  </code></pre>