org.commonmark.ext.image.attributes.ImageAttributes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commonmark-ext-image-attributes Show documentation
Show all versions of commonmark-ext-image-attributes Show documentation
commonmark-java extension for adding attributes to images
The newest version!
package org.commonmark.ext.image.attributes;
import org.commonmark.node.CustomNode;
import org.commonmark.node.Delimited;
import java.util.Map;
/**
* A node containing text and other inline nodes as children.
*/
public class ImageAttributes extends CustomNode implements Delimited {
private final Map attributes;
public ImageAttributes(Map attributes) {
this.attributes = attributes;
}
@Override
public String getOpeningDelimiter() {
return "{";
}
@Override
public String getClosingDelimiter() {
return "}";
}
public Map getAttributes() {
return attributes;
}
@Override
protected String toStringAttributes() {
return "imageAttributes=" + attributes;
}
}