-
Notifications
You must be signed in to change notification settings - Fork 61
feat: Markdown renderer #139
Conversation
|
| throw new Error('Unhandled @type JsDoc->TS conversion: ' + js_code); | ||
| } | ||
| } else if (ts.isJSDocParameterTag(tag) && ts.isFunctionDeclaration(node)) { | ||
| // if (node.parameters.length !== 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this? or add a comment about why it's disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed!
benmccann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some tests could be helpful at some point. I'm a little worried about modifying it since it affects multiple different sites with slightly different setups. But that can be a post-launch item
|
Ah yeah, tests are reallyyyy needed for this stuff, its too complicated and brittle. That is the cost of serving 2 sites at once though. Post launch, hopefully we can modify this logic to have learn.svelte.dev also be able to use it, with the weird +++ and --- syntax |
Moves the rendering logic from svelte.dev here, to be used by kit.svelte.dev as well
Related PRs:
sveltejs/svelte#8757
sveltejs/kit#10187