Commit 0645e376 authored by David Sveningsson's avatar David Sveningsson

feat(htmlvalidate): string sources are now transformed too

parent 9c2112c8
......@@ -55,13 +55,14 @@ class HtmlValidate {
/**
* Parse and validate HTML from [[Source]].
*
* @param source - Source to parse.
* @param input - Source to parse.
* @returns Report output.
*/
public validateSource(source: Source): Report {
const config = this.getConfigFor(source.filename);
public validateSource(input: Source): Report {
const config = this.getConfigFor(input.filename);
const source = config.transformSource(input);
const engine = new Engine(config, Parser);
return engine.lint([source]);
return engine.lint(source);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment