markdown-to-text icon indicating copy to clipboard operation
markdown-to-text copied to clipboard

[feature] Add two features to this library: remove KaTeX and FrontMatter.

Open PrinOrange opened this issue 2 years ago • 0 comments

  • First is to remove KaTeX. Because KaTeX contains a large number of special symbols, these codes are difficult to parse after extracting them into plain text. It can specify whether to remove KaTeX through Options.preserveKaTeX?: boolean;
  • Second, remove frontmatter for markdown. frontmatter is the header metadata and its markup in markdown. It is generally recognized by other programs and has nothing to do with the text content. So this part can be removed.
  • Finally, format the code using Prettier and upgrade some outdated dependencies.

PrinOrange avatar Jan 09 '24 04:01 PrinOrange