-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] Sublists Not Working in Docstrings #40169
Comments
This was also found by @xijiang and discussed over here: https://discourse.julialang.org/t/how-to-put-sublists-into-docstrings/57843 |
Tabs -> Spaces? |
I also recently saw this on CSV.File's docstring, too:
|
@fredrikekre - although this doesn't show it, I tested tabs and spaces and both have the same effect. I wonder if the Markdown parser somehow is not understanding the spacing/indenting... |
That is #37232
I can not reproduce it with just spaces, so I believe the problem is that you mix spaces and tabs in your example. |
Ah, I see. So using spaces give us #37232: julia> @md_str """
- `object::Symbol`: graphics objects defined by `Luxor.jl`. Default `:stroke`.
- `:stroke` - Draws the latex string on the canvas. For more info check `Luxor.strokepath`
- `:path` - Creates the path of the latex string but does not render it to the canvas.
"""
• object::Symbol: graphics objects defined by Luxor.jl. Default :stroke. - :stroke - Draws the latex string on the canvas. For more info check
Luxor.strokepath - :path - Creates the path of the latex string but does not render it to the canvas. Using tabs is also broken, but differently:
|
Hunh... Thanks for the sleuthing @mbauman - so there is two bugs here then. The one already reported by @KristofferC (#37232) and this new one with tabs. Do you know how I might go about fixing this? |
Bump? |
@StefanKarpinski - I never got any pointers or go ahead on this, but would be happy to help! Would be fun to make a small contribution to core Julia! 😄 |
Hi all! Thanks for making such a wonderful tool and making Julia even better and better!
I found an interesting bug when working on creating a docstring and trying to add in a sublist. Here is the docstring I was trying to make:
Which I expected to be nicely formatted like this:
Add the latex string
text
to the top left corner of the LaTeX path.Can be added to
Luxor.jl
graphics viaVideo
.NOTES:
This only works if
tex2svg
is installed.It can be installed using the following command (you may have to prefix this command with
sudo
depending on your installation):The
latex
method must be called from within anObject
.Arguments
text::LaTeXString
: a LaTeX string to render.pos::Point
: position of the upper left corner of the latex text. Default:O
x, y
instead ofPoint(x, y)
object::Symbol
: graphics objects defined byLuxor.jl
. Default:stroke
.:stroke
- Draws the latex string on the canvas. For more info checkLuxor.strokepath
:path
- Creates the path of the latex string but does not render it to the canvas.However, it ends up looking like this:
As one can see, the bullet for pos now contains the sub-bullet and the stroke and path sub-bullets were not rendered. Could anyone explain or help me figure out why this Markdown syntax does not work in docstrings?
Here is my versioninfo:
The text was updated successfully, but these errors were encountered: