title: marked(): input parameter is of type [object Function], string expected
body: <p>In my assets folder I have some markdown files. I would like to read the file content, convert it to valid HTML and display it within a div container.</p>
  
  <p>Before reading the file content I tried a markdown parser and took <code>marked</code> (<a href="https://www.npmjs.com/package/marked" rel="nofollow noreferrer">https://www.npmjs.com/package/marked</a>). </p>
  
  <p>When trying to use it I get this error</p>
  
  <blockquote>
    <p>marked(): input parameter is of type [object Function], string
    expected</p>
  </blockquote>
  
  <p>at</p>
  
  <p><a href="https://i.stack.imgur.com/lsW7f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lsW7f.png" alt="enter image description here"></a></p>
  
  <p>I created an minimalistic example where you can see the error</p>
  
  <p><a href="https://codesandbox.io/s/m36z064pn9" rel="nofollow noreferrer">https://codesandbox.io/s/m36z064pn9</a></p>
  
  <p>How can I fix it?</p>