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 =
|
||||
imageService.extractBgUrl(md, gitRawBase, this);
|
||||
|
||||
String bgSize = (yOpts != null) ?
|
||||
yOpts.fetchImageBgSize(pp) : YAMLOptions.DEFAULT_BG_SIZE;
|
||||
|
||||
return new StringBuffer(delimiter(md))
|
||||
.append(imageService.buildBackground(pp, imageBgUrl,
|
||||
yOpts.fetchImageBgSize(pp)))
|
||||
.append(imageService.buildBackground(pp,
|
||||
imageBgUrl, bgSize))
|
||||
.toString();
|
||||
|
||||
} else if (gistDelimFound(md)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user