Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: remove unicode zero length characters and fix Markdown to man page conversion #326

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

Open
lucasrangit wants to merge 5 commits into defunkt:master
base: master
Choose a base branch
Loading
from lucasrangit:docs-typo

Conversation

@lucasrangit
Copy link
Contributor

@lucasrangit lucasrangit commented Sep 15, 2020

Fix the typo from #325 and remove Unicode zero width characters from Markdown. Also format some vars with backticks.

Rendering of the README.md on github.com has not changed without the Unicode characters.

bl-ue, Mattfawkner, and rikas reacted with thumbs up emoji
Copy link
Collaborator

@lucasrangit I think these zero-width characters are used in the production of the man page, though it's been a long time since I looked into it, does that still work correctly without them?

Copy link
Contributor Author

Oh! 😮 I'll check.

Fix the following by not using `####` (h4) in Markdown
```
$ ronn --roff --manual="Gist manual" README.md
warn: unrecognized block tag: "h4"
```
... compatible with man page generated with ronn and make it easier to edit the README.md
Removing the unicode makes editing it easier. However, ronn has some issues with Markdown to man page format. For example, adding colons to the end of a bulleted line may disable bullets for the whole section.
The triple backtick code block was confusing `ronn` causing the token section to flow into the library section.
```
 Token file format
 If you cannot use passwords, as most Enterprise installations do, you can generate the token via the web interface and then simply save the string in the correct file. Avoid line breaks or you might see: $ gist -l Error: Bad
 credentials
 You can also use Gist as a library from inside your ruby code:
```
Copy link
Contributor Author

@lucasrangit I think these zero-width characters are used in the production of the man page, though it's been a long time since I looked into it, does that still work correctly without them?

You were absolutely right. The man page came out fine without the asterisks. But to be consistent, I replaced the Unicode with asterisks since there were getting substituted in the Rakefile anyway and the Markdown looks the same on GitHub. I think the Unicode make it harder to edit.

I also noticed a few other Markdown to man page issues and fixed them.

bl-ue and weakish reacted with thumbs up emoji

@lucasrangit lucasrangit changed the title (削除) docs: remove unicode zero length character (削除ここまで) (追記) docs: remove unicode zero length characters and fix Markdown to man page conversion (追記ここまで) Sep 16, 2020
Copy link

bl-ue commented Apr 2, 2021

Copy link
Contributor Author

Thanks for the review @bl-ue . Just curious, does this PR address any issues with tldr?

Copy link

bl-ue commented Apr 4, 2021
edited
Loading

Sharp eye you have there, @lucasrangit! 😎

As it happens, this PR doesn't fix anything with tldr. I started browsing this repo because I was reviewing a pull request of @nicokosi's (tldr-pages/tldr#5666), and then I came upon this PR. Seeing some uncertainty as to the benefit of this PR (which, by the way, is great and definitely needed), I thought I'd add my +1.

In fact, you can even see "<200c>For Ubuntu/Debian" right on the readme 😝

However, you're more than most welcome to contribute in any way to the tldr-pages project, if you feel inclined to do so!!

lucasrangit and nicokosi reacted with heart emoji

Copy link

@utkarsh2102 utkarsh2102 left a comment

Choose a reason for hiding this comment

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

Me likey! 👍🏻

bl-ue, lucasrangit, and cristiean reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

4 more reviewers

@utkarsh2102 utkarsh2102 utkarsh2102 approved these changes

@bl-ue bl-ue bl-ue approved these changes

@misha1528 misha1528 misha1528 approved these changes

@38484737 38484737 38484737 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /