-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
numbers not rendering on the website in some instances #1202
Comments
I think what might be happening is that it renders every block after a ```shell block like a new list hence the recurring |
Thank you for looking into this! @RichieEscarez some more website rendering issues. |
I started looking into this, a potential fix could be adding four spaces to indent content between bullet points but I haven't figured out how to confirm that this works by viewing the rendered website. having the same issue as: #1239 |
Looks like the Hugo markdown processor wants another single space added in front of any content in a nested list (that includes a line break). which fixes the first bullet in the example topic reference in this issue: https://knative.dev/docs/serving/samples/hello-world/helloworld-csharp/index.html |
Ahh I see, great @RichieEscarez , is this something that we should document or is it possible to change the rules for the Hugo markdown processor? |
Looks like this has been a known Blackfriday issue for some time and the extra spacing that I found to fix our issue is what has been the "workaround". Ill keep an eye out for alternate solutions and will try to document this soon. But even with a set of instructions in our repo it is un-intuitive to indent with "3-4 spaces" (especially if you use the "TAB" button). As far as our library, Ive seen some .md files where the author has either failed to indent all together, while some are indented normally ("1 tab"), and in both cases, its not obvious that there will be an rendering issue on knative.dev, given that the GitHub WYSIWIG renders correctly (and doesnt indicate any type of problem). Render Test: "tabs vs spaces" Example using 4 spaces:
Example using 1 tab:
Example with 3 spaces:
If single tabs are used or if code blocks exclude additional indentation, lists break and the count restarts. When rendered on knative.dev it is more obvious and sometimes no indentation shows (even though GitHub renders it indented). For examples:
|
FYI: I'm testing out possibility of using our "sock puppet" that runs 'prettier' on all the markdown. We still would be faced with the lack of any type of UI or linter that enforces "4 spaces" (during authoring or PR review/merge) but having all tabs converted into spaces will reduce the overhead of manually adding 1-2 spaces to any existing "tabs". |
Sounds good! |
* Fix markdown * Fix all indentations in numbered lists * add additional "space" indentation for #1202
* Replace service.yaml with the correct contents * edit for clarity, domain as req., PR #1202 * Update docs/serving/samples/gitwebhook-go/README.md Co-Authored-By: RichieEscarez <[email protected]> * Apply suggestions from code review Co-Authored-By: RichieEscarez <[email protected]>
* Replace service.yaml with the correct contents * edit for clarity, domain as req., PR knative#1202 * Update docs/serving/samples/gitwebhook-go/README.md Co-Authored-By: RichieEscarez <[email protected]> * Apply suggestions from code review Co-Authored-By: RichieEscarez <[email protected]>
Issues go stale after 90 days of inactivity. Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra. /lifecycle stale |
With the new Hugo v0.61.0 release, all of these rendering issues go away. See pending the PR in knative/website for the fix that resolves these issues |
Fix was merged, closing this |
Expected Behavior
Actual Behavior
1.
first item1.
second item1.
third itemSteps to Reproduce the Problem
Some numbered bullet points are not rendering on the website but are fine in the github docs, this is the first instance I have seen of this happening, take a look at this Hello world sample app - https://knative.dev/docs/serving/samples/hello-world/helloworld-csharp/index.html
Additional Info
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: