Angular - Controls - ngx-Markdown

the Ngx-Markdown is a critical piece of the MarklandCentral and TheCoffeePlace website. It provides most of the UI.

I found that the ngx-markdown home page ( https://www.npmjs.com/package/ngx-markdown ) was excellent. It have me lots of information including

  • how to add Markdown to your website
  • how to add prismjs to markdown output, which is used colorize computer code examples
  • how to add line numbers to markdown output, which lets me add notes and refer to lines of code.

Installation

In my Angular project, I opened a terminal window and executed the following statement

1
npm install --save ngx-markdown

After this when I compiled my application, it threw errors! (this was based on a download of 3/22/2020 so things may have changed). To fix this compilation error I perform activities that were documented in https://github.com/storybookjs/storybook/issues/9463 which was to basically update my TypeScript to 3.7 or higher.

References