New Font, Refactor of Layout, Expanded <link> Tags on search

This commit is contained in:
Simon Martens
2022-11-10 01:56:00 +01:00
parent e97103e7d9
commit 4f3581ee6a
36 changed files with 185 additions and 148 deletions

View File

@@ -1,13 +1,16 @@
namespace HaWeb.SearchHelpers;
using System.Text;
using HaDocument.Interfaces;
public class SearchState : HaWeb.HTMLParser.IState {
internal string SearchWord;
internal string? CurrentIdentifier;
internal ILibrary? Lib;
internal bool Normalize;
internal List<(string Page, string Line, string Identifier)>? Results;
public SearchState(string searchword, bool normalize = false) {
public SearchState(string searchword, bool normalize = false, ILibrary? lib = null) {
Lib = lib;
Normalize = normalize;
SearchWord = searchword;
}