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

Convert quoted arguments into code? #7

Open
tbm opened this issue May 12, 2020 · 4 comments
Open

Convert quoted arguments into code? #7

tbm opened this issue May 12, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@tbm
Copy link

tbm commented May 12, 2020

The manual has stuff like:

characters with the “-w” option.
“--render-balance”

I wonder if everything that looks like an an argument (i.e. something like ^-[\w-]) should be converted to `code`.

Other things that might be converted like this:

  • single characters: e.g.

Tags must begin with “#”, and links with “^”.

  • maybe dates: \d\d[./]\d\d[./]\d\d
@tbm
Copy link
Author

tbm commented May 12, 2020

also account names:

name, e.g., “Expenses:Scuba:Martin”. The other accounts, e.g. “Expenses:Groceries” are intended to be split.

@xuhcc
Copy link
Collaborator

xuhcc commented May 12, 2020

If these pieces of text are written in Consolas font, they should now appear as inline code (#10).

@tbm
Copy link
Author

tbm commented May 13, 2020

If these pieces of text are written in Consolas font, they should now appear as inline code (#10).

The idea of this ticket was to convert them to code even if Consolas is not used, as long as they match a specific pattern.

While it's probably best to convert the Google docs to Consolas, that's probably a lot of work and doing it in the converted might be a good idea. But it's up to you.

@xuhcc
Copy link
Collaborator

xuhcc commented May 13, 2020

I think it's better to keep the original formatting, at least as long as Google doc has the "official" status.

But I won't mind if you send a PR with additional rules for parser.

@xuhcc xuhcc added the enhancement New feature or request label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants