futurGH / ts-to-jsdoc

Transpile TypeScript code to fully compatible JavaScript + JSDoc comments.
MIT License
181 stars 17 forks source link

Escape tag names in internal function descriptions #35

Closed kungfooman closed 9 months ago

kungfooman commented 9 months ago

Fixes: #33

I just want to make sure that ts-to-jsdoc works on itself without loosing information in descriptions - would be :ok_hand: :sweat_smile:

Test for escape method: https://ts-ast-viewer.com/#code/PQKhCgAIUgXBTAzrSADAAgBwIYCdsC2qkO+BcAFgJaKQ2TZxKxQjDgBmArgHYDGsKgHseTZAApShAFyRkuKjwDmASkgBvAL7ggA

Result:

image

futurGH commented 9 months ago

Fair enough!