mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.198.3
This commit is contained in:
@@ -664,6 +664,14 @@ Parser.sourceJsonToStylePart = function (source) {
|
||||
return "";
|
||||
};
|
||||
|
||||
Parser.sourceJsonToMarkerHtml = function (source, {isList = true, additionalStyles = ""} = {}) {
|
||||
source = Parser._getSourceStringFromSource(source);
|
||||
// TODO(Future) consider enabling this
|
||||
// if (SourceUtil.isPartneredSourceWotc(source)) return `<span class="help-subtle ve-source-marker ${isList ? `ve-source-marker--list` : ""} ve-source-marker--partnered ${additionalStyles}" title="D&D Partnered Source">✦</span>`;
|
||||
if (SourceUtil.isLegacySourceWotc(source)) return `<span class="help-subtle ve-source-marker ${isList ? `ve-source-marker--list` : ""} ve-source-marker--legacy ${additionalStyles}" title="Legacy Source">ʟ</span>`;
|
||||
return "";
|
||||
};
|
||||
|
||||
Parser.stringToSlug = function (str) {
|
||||
return str.trim().toLowerCase().toAscii().replace(/[^\w ]+/g, "").replace(/ +/g, "-");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user