Importing checklists from trello didnt work with the markdown. Changed it to the corresponding HTML Tags
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Christoph Ritzer 2024-02-28 17:11:32 +01:00
parent 5b70609ba7
commit 5a39b44854

View File

@ -231,16 +231,16 @@ func convertTrelloDataToVikunja(trelloData []*trello.Board, token string) (fullV
// Checklists (as markdown in description)
for _, checklist := range card.Checklists {
task.Description += "\n\n## " + checklist.Name + "\n"
task.Description += "\n\n<h1> " + checklist.Name + "</h1>\n" + "<ul data-type='taskList'>"
for _, item := range checklist.CheckItems {
task.Description += "\n* "
task.Description += "\n "
if item.State == "complete" {
task.Description += "[x]"
task.Description += "<li data-checked='true' data-type='taskItem'><label><input type='checkbox' checked='checked'><span></span></label><div><p>"
} else {
task.Description += "[ ]"
task.Description += "<li data-checked='false' data-type='taskItem'><label><input type='checkbox'><span></span></label><div><p>"
}
task.Description += " " + item.Name
task.Description += item.Name + "</p></div></li></ul>"
}
}
if len(card.Checklists) > 0 {