-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undesired space for documentation #4
Comments
Which parser are you having trouble with? All markdown specs I've read while slowly making a parser say that preceding whitespace is permitted and has no impact on the document. |
Oh! Thanks for your answer! I'm using Showdown JS, because of habits mainly. It does not support leading space as you can see in the live demo. I'm still wondering about the leading space, for the code part. Let's say the doc is:
Which translates to
Can we be sure parsers will get rid of leading spaces in code blocks? Because I think we'd like to have io.debug("hello gleam") And not io.debug("hello gleam") Is it a parser thing? Should it be handled in the code directly? |
I think that is a problem with that specific markdown parser, but it'd still be good to resolve this. We do have some space trimming code that we use when rendering HTML documentation, let's apply that to the module interface docs too. |
Hi!
In the documentation fields, there's an undesired leading space for every line.
Here's an example, from the package interface of the
gleam_stdlib
right now (append
function here):I suspect it's due to the
///
comments removed, but the space between the triple slash and the comments themselves are still there. It's a bug, because the string as-is is not a valid markdown string.The text was updated successfully, but these errors were encountered: