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

@ -114,8 +114,8 @@ func SyncExercices(i Importer, theme fic.Theme) []string {
}
// Markdown pre-formating
statement = string(blackfriday.Run([]byte(statement)))
overview = string(blackfriday.Run([]byte(overview)))
statement = ProcessMarkdown(i, statement, edir)
overview = ProcessMarkdown(i, overview, edir)
headline = string(blackfriday.Run([]byte(headline)))
e, err := theme.GetExerciceByTitle(ename)