internal string ResolveHeaderID(Markdown m) { // Already resolved? if (this.data != null && this.data is string) { return((string)this.data); } // Approach 1 - PHP Markdown Extra style header id int end = contentEnd; string id = Utils.StripHtmlID(buf, contentStart, ref end); if (id != null) { contentEnd = end; } else { // Approach 2 - pandoc style header id id = m.MakeUniqueHeaderID(buf, contentStart, contentLen); } this.data = id; return(id); }