Resolved #11 background-size YAML option handling.

This commit is contained in:
David Russell 2016-10-03 15:44:50 +07:00
parent 3170ff886d
commit fa287ba150

View File

@ -151,9 +151,12 @@ public class MarkdownModel implements Markdown {
String imageBgUrl = String imageBgUrl =
imageService.extractBgUrl(md, gitRawBase, this); imageService.extractBgUrl(md, gitRawBase, this);
String bgSize = (yOpts != null) ?
yOpts.fetchImageBgSize(pp) : YAMLOptions.DEFAULT_BG_SIZE;
return new StringBuffer(delimiter(md)) return new StringBuffer(delimiter(md))
.append(imageService.buildBackground(pp, imageBgUrl, .append(imageService.buildBackground(pp,
yOpts.fetchImageBgSize(pp))) imageBgUrl, bgSize))
.toString(); .toString();
} else if (gistDelimFound(md)) { } else if (gistDelimFound(md)) {