Verified Owner
Top Fields Constructors Methods
org.jabref.logic.layout.format

public Class MarkdownFormatter

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
org.jabref.logic.layout.LayoutFormatter, com.vladsch.flexmark.html.HtmlRenderer, com.vladsch.flexmark.parser.Parser, com.vladsch.flexmark.util.ast.Node, com.vladsch.flexmark.util.data.MutableDataSet, org.jspecify.annotations.NonNull

Field Summary

Modifier and TypeField and Description
private final Parser
private final HtmlRenderer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
format(final @NonNull String fieldText)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parserback to summary
private final Parser parser
rendererback to summary
private final HtmlRenderer renderer

Constructor Detail

MarkdownFormatterback to summary
public MarkdownFormatter()

Method Detail

formatback to summary
public String format(final @NonNull String fieldText)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Doc from org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.

Annotations
@Override