mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Added support for spaces on image/video paths.
This commit is contained in:
parent
d94c994fc9
commit
df11a4d881
|
@ -542,6 +542,7 @@ public class MarkdownModel implements Markdown {
|
|||
public String linkLive(PitchParams pp, String linkBase) {
|
||||
try {
|
||||
|
||||
linkBase = linkBase.replaceAll(MD_LINK_SPACE, ENCODED_SPACE);
|
||||
if (linkAbsolute(linkBase)) {
|
||||
return linkBase;
|
||||
} else {
|
||||
|
@ -727,6 +728,7 @@ public class MarkdownModel implements Markdown {
|
|||
private static final String HTML_ANCHOR_MID = "\">";
|
||||
private static final String HTML_ANCHOR_CLOSE = "</a>";
|
||||
private static final int NOT_FOUND = -1;
|
||||
private static final String ENCODED_SPACE = "%20";
|
||||
/*
|
||||
* Model prefix identifier for cache key generator.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user