sync: import files in markdown, relative to theme/exercice dir

This commit is contained in:
nemunaire 2018-12-02 16:24:33 +01:00
commit 87471acf98
6 changed files with 75 additions and 8 deletions

View file

@ -99,7 +99,7 @@ func SyncThemes(i Importer) []string {
authors_str := strings.Join(authors, ", ")
// Format overview (markdown)
intro = string(blackfriday.Run([]byte(intro)))
intro = ProcessMarkdown(i, intro, tdir)
headline = string(blackfriday.Run([]byte(headline)))
if i.exists(path.Join(tdir, "heading.jpg")) {