mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Added marginal search. Some refactoring
This commit is contained in:
@@ -36,7 +36,7 @@ public static class CommentRules {
|
||||
if (reader.State.Category == "bibel" && reader.State.Type == HaWeb.Settings.ParsingState.CommentType.Subcomment &&
|
||||
reader.OpenTags.Any() && reader.OpenTags.Last().Name == "lemma" &&
|
||||
!txt.Value.Contains("Stücke zu") && !txt.Value.Contains("ZusDan")) {
|
||||
var lnkstring = Regex.Replace(txt.Value, @"\s+", "");
|
||||
var lnkstring = Regex.Replace(txt.Value, @"\s+", string.Empty);
|
||||
sb.Append(HTMLHelpers.TagHelpers.CreateCustomElement("a",
|
||||
new HaWeb.HTMLHelpers.TagHelpers.Attribute() { Name = "href", Value = "https://www.bibleserver.com/LUT/" + lnkstring},
|
||||
new HaWeb.HTMLHelpers.TagHelpers.Attribute() { Name = "target", Value = "_blank"},
|
||||
|
||||
Reference in New Issue
Block a user