sinaatalay / rendercv

The engine of the RenderCV App
http://docs.rendercv.com
MIT License
1.75k stars 116 forks source link

Hash symbol in custom NormalEntry section #2

Closed Vinhcognito closed 10 months ago

Vinhcognito commented 10 months ago

Describe the bug Unable to create a hash character in a custom NormalEntry block. Tried both: C# and escaping it: C\#

To Reproduce

  custom_sections:
    - title: Skillz
      entry_type: NormalEntry
      entries:
        - name: "Programming Languages:"
          highlights:
            - "C\#"
            - "Special characters test: üğç"

Screenshots Console Output: CRITICAL | ScannerError('while scanning a double-quoted scalar', <ruamel.yaml.error.FileMark object at 0x000002089ECD4380>, "found unknown escape character '#'"

image

sinaatalay commented 10 months ago

Thank you for finding this. In fact, I never coded something to escape special $\LaTeX$ characters. 08a4fcdcc09cacaff6fbbc20ea90187e1f2b6ad1 fixes the issue. Now, plain C# is fine. The new version of RenderCV with the fix will be online in ~20 minutes.