openzim / freecodecamp

FreeCodeCamp.org scraper (to ZIM)
GNU General Public License v3.0
4 stars 2 forks source link

Challenges with colon in title #6

Open rgaudin opened 1 year ago

rgaudin commented 1 year ago

Just saw another glitch ; in python-for-everybody, a number of challenges like networking-text-processing have titles that include a colon : which breaks the YAML parsing.

See /fcc/curriculum/english/scientific-computing-with-python/python-for-everybody/networking-text-processing.md:

---
id: 5e7b9f0c0b6c005b0e76f074
title: 'Networking: Text Processing'
challengeType: 11
videoId: Pv_pJgVu8WI
bilibiliIds:
  aid: 804442498
  bvid: BV16y4y1j7WW
  cid: 377329124
dashedName: networking-text-processing
---

The rendered title is 'Networking

Screenshot 2023-07-04 at 09 44 45

Originally posted by @rgaudin in https://github.com/openzim/freecodecamp/issues/5#issuecomment-1619706243

mdp commented 1 year ago

This isn't an issue with Python, but happening on the render side. This needs to be solved in conjuction with #8