mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Remove prefixed whitespace in markdown rendering
This commit is contained in:
@ -85,7 +85,7 @@ test('verify updated config values', async (done) => {
|
|||||||
const res = await request.get('/api/config');
|
const res = await request.get('/api/config');
|
||||||
expect(res.body.name).toBe(serverName);
|
expect(res.body.name).toBe(serverName);
|
||||||
expect(res.body.streamTitle).toBe(streamTitle);
|
expect(res.body.streamTitle).toBe(streamTitle);
|
||||||
expect(res.body.summary).toBe(serverSummary);
|
expect(res.body.summary).toBe(`<p>${serverSummary}</p>`);
|
||||||
expect(res.body.extraPageContent).toBe(pageContent);
|
expect(res.body.extraPageContent).toBe(pageContent);
|
||||||
expect(res.body.logo).toBe('/logo');
|
expect(res.body.logo).toBe('/logo');
|
||||||
expect(res.body.socialHandles).toStrictEqual(socialHandles);
|
expect(res.body.socialHandles).toStrictEqual(socialHandles);
|
||||||
|
|||||||
@ -141,7 +141,7 @@ func RenderPageContentMarkdown(raw string) string {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf.String()
|
return strings.TrimSpace(buf.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCacheDurationSecondsForPath will return the number of seconds to cache an item.
|
// GetCacheDurationSecondsForPath will return the number of seconds to cache an item.
|
||||||
|
|||||||
Reference in New Issue
Block a user