const parser = require("./grammar"); // tslint:disable-line

export const ignore = new RegExp([
  /^Needed cmti file of module/,
  /^No documentation available/,
  /^Not a valid identifier/,
  /^Not in environment '.*'/,
  /^didn't manage to find/,
].map((rx) => rx.source).join("|"));

export function intoMarkdown(ocamldoc: string): string {
  let result = ocamldoc;
  try {
    result = parser.parse(ocamldoc);
  } catch (err) {
    //
  }
  return result;
}

const parser = require("./grammar"); // tslint:disable-line

export const ignore = new RegExp([
  /^No documentation available/,
  /^Not a valid identifier/,
  /^Not in environment '.*'/,
].map((rx) => rx.source).join("|"));

export function intoMarkdown(ocamldoc: string): string {
  let result = ocamldoc;
  try {
    result = parser.parse(ocamldoc);
  } catch (err) {
    //
  }
  return result;
}

--- 
+++ 
@@ -1,9 +1,11 @@
 const parser = require("./grammar"); // tslint:disable-line
 
 export const ignore = new RegExp([
+  /^Needed cmti file of module/,
   /^No documentation available/,
   /^Not a valid identifier/,
   /^Not in environment '.*'/,
+  /^didn't manage to find/,
 ].map((rx) => rx.source).join("|"));
 
 export function intoMarkdown(ocamldoc: string): string {
Add more ignore patterns to ocamldoc parser
