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

Citeproc warning when using a Mastodon profile link #3493

Closed
4 tasks done
andrewheiss opened this issue Nov 28, 2022 · 6 comments
Closed
4 tasks done

Citeproc warning when using a Mastodon profile link #3493

andrewheiss opened this issue Nov 28, 2022 · 6 comments
Assignees
Labels
bug Something isn't working markdown-pipeline Related to markdown rendering outside the main document
Milestone

Comments

@andrewheiss
Copy link

Bug description

With the recent addition of the rel: me option to navbars, it's now possible to include a link to a Mastodon profile and have it be verified on their end:

website:
  title: "Blah"
  navbar:
    right:
      - icon: mastodon
        aria-label: mastodon
        href: https://fediscience.org/@andrew
        rel: me

Mastodon profile links typically include a @ in their URL, like https://fediscience.org/@andrew above. This causes a minor problem when working with citations, just like Twitter card issues in #1702. When a site's navbar has a URL with a @, it causes a pandoc warning:

[WARNING] Citeproc: citation andrew not found

It's not a breaking bug or anything, just kind of funny to see it happen with every page that gets rendered 🙃

image


This is with Quarto 1.3.26 in RStudio 2022.07.2+576 (and also in VS Code) on macOS Monterey 12.6

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
@andrewheiss andrewheiss added the bug Something isn't working label Nov 28, 2022
andrewheiss added a commit to andrewheiss/ath-quarto that referenced this issue Nov 29, 2022
Hopefully this is still valid for Mastodon's link verification system?

See also quarto-dev/quarto-cli#3493
@mcanouil
Copy link
Collaborator

mcanouil commented Nov 29, 2022

If you use explicit yaml string by adding double quotes around the url, does the issue still occur?

To note, your used "@" in several places, but the mastodon uri is the only place you did not make it clear to YAML that the value was a literal string.

@andrewheiss
Copy link
Author

The issue still happens if it's quoted:

      - icon: mastodon
        aria-label: mastodon
        href: "https://fediscience.org/@andrew"
        rel: me
output file: index.knit.md

[WARNING] Citeproc: citation andrew not found

@cscheid
Copy link
Collaborator

cscheid commented Nov 30, 2022

@mcanouil quotes in this context won't change the resulting parsed string. YAML scalars are obnoxious. Usually I'd refrain from posting the spec, but y'all can take it :) https://yaml.org/spec/1.2.2/#73-flow-scalar-styles

@andrewheiss I'm relatively sure this is a bug on citeproc (or on how we interface with citeproc).

@andrewheiss
Copy link
Author

Oh, as another possible workaround, I tried percent encoding the @ with %40, but there's a bug in Mastodon itself (mastodon/mastodon#15153) that makes that not work 🤷‍♂️

@dragonstyle dragonstyle added this to the v1.4 milestone Jan 3, 2023
@dragonstyle dragonstyle mentioned this issue Mar 30, 2023
5 tasks
@cderv
Copy link
Collaborator

cderv commented Mar 30, 2023

For reference the mastodon issue has been resolved and using %40 works now. This is the workaround to use until we managed to fix that, (if we can... )

@dragonstyle dragonstyle added the markdown-pipeline Related to markdown rendering outside the main document label Dec 6, 2023
@leofontenelle
Copy link

Just a data point: contrary to fediscience.org, mastodon.social is not interpreting %40 as @. Yesterday I thought it was interpreting too, but maybe it was just sleep deprivation.

Personally, I just took the Mastodon link from my navigation bar for now, and will be following this bug report.

BTW, thanks for Quarto so far!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working markdown-pipeline Related to markdown rendering outside the main document
Projects
None yet
Development

No branches or pull requests

6 participants