Browse Source

doc sections: use span instead of div for inline texts

pull/2297/head
Yunus Emre Kalkan 7 years ago
parent
commit
0845b3a8d1
  1. 6
      modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionHtmlReplacer.cs

6
modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionHtmlReplacer.cs

@ -32,18 +32,18 @@ namespace Volo.Docs.HtmlConverting
values[i] = keysValuesSplitted[i].Split(DocumentSectionConsts.SectionOpenerKeyValueSeparator)[1];
}
var div = $"<div class=\"doc-section\" data-keys=\"" +
var div = $"<span class=\"doc-section\" data-keys=\"" +
$"{string.Join(splitterChar, keys)}" +
$"\" data-values=\"" +
$"{string.Join(splitterChar, values)}" +
$"\" style=\"display: none\">";
$"\">";
document = document.Remove(sectionIndex, sectionCloserIndex + DocumentSectionConsts.SectionOpenerPrefix.Length +1);
document = document.Insert(sectionIndex, div);
}
document = document.Replace(DocumentSectionConsts.SectionCloser, "</div>");
document = document.Replace(DocumentSectionConsts.SectionCloser, "</span>");
return document;
}

Loading…
Cancel
Save