本文整理了Java中com.vladsch.flexmark.parser.Parser.transferReferences()
方法的一些代码示例,展示了Parser.transferReferences()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.transferReferences()
方法的具体详情如下:
包路径:com.vladsch.flexmark.parser.Parser
类名称:Parser
方法名:transferReferences
暂无
代码示例来源:origin: vsch/flexmark-java
@Override
public boolean transferReferences(final MutableDataHolder document, final DataHolder included) {
// cannot optimize based on macros in this document, repository is not accessed until rendering
if (/*document.contains(MACRO_DEFINITIONS) &&*/ included.contains(MACRO_DEFINITIONS)) {
return Parser.transferReferences(MACRO_DEFINITIONS.getFrom(document), MACRO_DEFINITIONS.getFrom(included), MACRO_DEFINITIONS_KEEP.getFrom(document) == KeepType.FIRST);
}
return false;
}
代码示例来源:origin: vsch/flexmark-java
@Override
public boolean transferReferences(final MutableDataHolder document, final DataHolder included) {
if (document.contains(FOOTNOTES) && included.contains(FOOTNOTES)) {
return Parser.transferReferences(FOOTNOTES.getFrom(document), FOOTNOTES.getFrom(included), FOOTNOTES_KEEP.getFrom(document) == KeepType.FIRST);
}
return false;
}
代码示例来源:origin: vsch/flexmark-java
@Override
public boolean transferReferences(final MutableDataHolder document, final DataHolder included) {
if (document.contains(ENUMERATED_REFERENCES) && included.contains(ENUMERATED_REFERENCES)) {
return Parser.transferReferences(ENUMERATED_REFERENCES.getFrom(document), ENUMERATED_REFERENCES.getFrom(included), ENUMERATED_REFERENCES_KEEP.getFrom(document) == KeepType.FIRST);
}
return false;
}
代码示例来源:origin: vsch/flexmark-java
@Override
public boolean transferReferences(final MutableDataHolder document, final DataHolder included) {
if (document.contains(ZZZZZZS) && included.contains(ZZZZZZS)) {
return Parser.transferReferences(ZZZZZZS.getFrom(document), ZZZZZZS.getFrom(included), ZZZZZZS_KEEP.getFrom(document) == KeepType.FIRST);
}
return false;
}
代码示例来源:origin: vsch/flexmark-java
@Override
public boolean transferReferences(Document document, Document included) {
// transfer references from included to document
boolean transferred = false;
if (options.contains(EXTENSIONS)) {
for (Extension extension : options.get(EXTENSIONS)) {
if (extension instanceof ReferenceHoldingExtension) {
ReferenceHoldingExtension parserExtension = (ReferenceHoldingExtension) extension;
if (parserExtension.transferReferences(document, included)) transferred = true;
}
}
}
// transfer references
if (document.contains(REFERENCES) && included.contains(REFERENCES)) {
if (transferReferences(REFERENCES.getFrom(document), REFERENCES.getFrom(included), REFERENCES_KEEP.getFrom(document) == KeepType.FIRST)) {
transferred = true;
}
}
if (transferred) {
document.set(HtmlRenderer.RECHECK_UNDEFINED_REFERENCES, true);
}
return transferred;
}
代码示例来源:origin: com.vladsch.flexmark/flexmark-ext-footnotes
@Override
public boolean transferReferences(final MutableDataHolder document, final DataHolder included) {
if (document.contains(FOOTNOTES) && included.contains(FOOTNOTES)) {
return Parser.transferReferences(FOOTNOTES.getFrom(document), FOOTNOTES.getFrom(included), FOOTNOTES_KEEP.getFrom(document) == KeepType.FIRST);
}
return false;
}
代码示例来源:origin: com.vladsch.flexmark/flexmark
@Override
public boolean transferReferences(Document document, Document included) {
// transfer references from included to document
boolean transferred = false;
if (options.contains(EXTENSIONS)) {
for (Extension extension : options.get(EXTENSIONS)) {
if (extension instanceof ReferenceHoldingExtension) {
ReferenceHoldingExtension parserExtension = (ReferenceHoldingExtension) extension;
if (parserExtension.transferReferences(document, included)) transferred = true;
}
}
}
// transfer references
if (document.contains(REFERENCES) && included.contains(REFERENCES)) {
if (transferReferences(REFERENCES.getFrom(document), REFERENCES.getFrom(included), REFERENCES_KEEP.getFrom(document) == KeepType.FIRST)) {
transferred = true;
}
}
if (transferred) {
document.set(HtmlRenderer.RECHECK_UNDEFINED_REFERENCES, true);
}
return transferred;
}
内容来源于网络,如有侵权,请联系作者删除!