mottox2 / remark-code-titles

16 stars 2 forks source link

Split on the first colon in language description #3

Closed cseas closed 3 years ago

cseas commented 3 years ago

Earlier implementation split on all colons which caused bug #2

This change modifies the split method so that the everything after the first colon symbol is considered as title.

Sample output:

Screenshot 2021-04-27 at 11 15 51 PM