Skip to content

Conversation

@klnsv
Copy link
Contributor

@klnsv klnsv commented Nov 13, 2025

This PR fixes(#1)

added a

  • tag to replicate list behaviour in HTML

  • path = "/help/#{manifest.reference}"

    "<li> <a href=\"#{path}\">#{manifest.reference.split("::").last}</a> </li>"
    "<li><a href=\"#{path}\">#{manifest.reference.split("::").last}</a></li>"
    Copy link
    Contributor

    @azimux azimux Nov 14, 2025

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    I think we should relocate this to line 153 since that's where these commands are rendered and are missing their <li> tags, as opposed to here which might be called outside of a context where an <li> is needed.

    if manifest.is_a?(::Symbol)
    html << "<li>"
    html << foobara_reference_link(data.to_type)
    html << "</li>"
    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    ooo, this one scares me, but if it looks fine in the HTML output we can certainly merge it!

    One way I would try testing it is putting a break-point here and see if the result looks good by looking at what's in html. Another way is to just fire it up with an example script that has a symbol in a relevant spot, which isn't that hard to do, and probably already happens with the example script that reproduces the bug if you click into the commands.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    It looks fine to me. Can you specify what you were worried might happen?

    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    I have no clue what would happen... bad formatting of some sort perhaps. If it looks good then let's merge it!

    @azimux azimux merged commit 30de900 into foobara:main Nov 14, 2025
    1 check passed
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants