import { inject , injectable } from 'inversify' ; import { ResultMarkdownBuilder } from './result-markdown-builder' ; import { CombinedReportParameters } from 'accessibility-insights-report' ; import { BaselineInfo } from '../baseline-info' ; @ injectable ( ) export class ReportMarkdownConvertor { constructor ( @ inject ( ResultMarkdownBuilder ) private readonly checkResultMarkdownBuilder ) { } public convert ( combinedReportResult , title ? , baselineInfo ? ) { return this . checkResultMarkdownBuilder . buildContent ( combinedReportResult , title , baselineInfo ) ; } public getErrorMarkdown ( ) { return this . checkResultMarkdownBuilder . buildErrorContent ( ) ; } }