mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Resolved #11 background-size YAML option handling.
This commit is contained in:
parent
3170ff886d
commit
fa287ba150
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user