Skip to content
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

Hinting with a backtick still displays the backtick #2

Open
wychwitch opened this issue Dec 27, 2021 · 4 comments
Open

Hinting with a backtick still displays the backtick #2

wychwitch opened this issue Dec 27, 2021 · 4 comments
Labels
wontfix This will not be worked on

Comments

@wychwitch
Copy link

Hello, another small formatting issue!

When hinting with a `backtick, the whitespace is handled correctly, but the backtick is still present, which I don't believe is intended behavior? Example is here

# Explicitly hint the function call so the compiler knows it prints something
Your lucky number is `[rand:1;100].

Thanks again!

@lanice
Copy link
Owner

lanice commented Dec 27, 2021

Interesting! So I did some digging, and it seems like the documentation where the example is from is already a bit ahead of the actual implementation of Rant 😄 In the Discord they mentioned that they are changing the hinting syntax (as well as some others, like sink), and that is already reflected in the official docs. The actual implementation still uses the old syntax though.

So basically this is just a documentation issue, and will solve itself with time :)

@lanice
Copy link
Owner

lanice commented Dec 27, 2021

Oh and for completeness, the old hinting syntax uses the normal single quote ', and that should actually work with the Obsidian plugin!

So the example would look like this:

Your lucky number is '[rand:1;100].

@wychwitch
Copy link
Author

Oh!! Thank you so much for clarifying!! That makes a lot of sense, they've been making a lot of strides with the language lately

I'm going to try implementing some more complex tables in this soon (and I'll probably be opening up some more issues) but so far this is working so well!!

@lanice
Copy link
Owner

lanice commented Dec 27, 2021

Looking forward to it!

@lanice lanice added the wontfix This will not be worked on label Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants