public IDfmFencesBlockPathQueryOption ParseQueryOrFragment( DfmFencesBlockPathQueryOptionParameters parameters, bool noCache = false) { if (parameters == null) { return(new FullFileBlockPathQueryOption()); } if (string.IsNullOrEmpty(parameters.TagName) && parameters.LinePairs.Count == 0) { return(new FullFileBlockPathQueryOption { HighlightLines = parameters.HighlightLines, DedentLength = parameters.DedentLength, }); } return(null); }
public IDfmFencesBlockPathQueryOption ParseQueryOrFragment( DfmFencesBlockPathQueryOptionParameters parameters, bool noCache = false) { if (parameters == null) { return(null); } if (!string.IsNullOrEmpty(parameters.TagName)) { return(new TagNameBlockPathQueryOption(_builder, noCache) { HighlightLines = parameters.HighlightLines, DedentLength = parameters.DedentLength, TagName = parameters.TagName, }); } return(null); }