sync: refactor exercice synchronization

This commit is contained in:
nemunaire 2018-12-05 05:02:27 +01:00
commit dc4a4925e3
5 changed files with 237 additions and 134 deletions

View file

@ -99,7 +99,10 @@ func SyncThemes(i Importer) []string {
authors_str := strings.Join(authors, ", ")
// Format overview (markdown)
intro = ProcessMarkdown(i, intro, tdir)
intro, err = ProcessMarkdown(i, intro, tdir)
if err != nil {
errs = append(errs, fmt.Sprintf("%q: overview.txt: an error occurs during markdown formating: %s", tdir, err))
}
headline = string(blackfriday.Run([]byte(headline)))
if i.exists(path.Join(tdir, "heading.jpg")) {