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

Showfnotes confused if the note contains closing double angle brackets #44

Open
kookma opened this issue Sep 17, 2023 · 0 comments
Open
Labels
bug Something isn't working enhancement New feature or request

Comments

@kookma
Copy link
Owner

kookma commented Sep 17, 2023

On Fri, Sep 15, 2023 at 11:56 PM Springer via Talk TW wrote:

If I try this:

<<fnote """My note must mention <<ref author1999title>>""" >>

the <<showfnotes>> macro gets confused, and the wikified result is:

<$let output=My note must mention [author1999title>] </li>

Is this a problem that can be solved?

Yes, this is a limitation. The problem is <<fnote and >> are used as delimiters here. when you use <<...>> inside <<fnote ... then showfnotes get confused.
The solution would be to recursively look for any number of >> closing delimiter.

For example <<fnote """My note must mention <<ref author1999title>>""" >> does not work, but
<<fnote """My note must mention <$macrocall $name=ref tid=author1999title>>""" >>works fine.

To myself:
The output macro can be modified to address this.

@kookma kookma added bug Something isn't working enhancement New feature or request labels Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant