docs icon indicating copy to clipboard operation
docs copied to clipboard

Convert quoted arguments into code?

Open tbm opened this issue 5 years ago • 4 comments

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 avatar May 12 '20 08:05 tbm

also account names:

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

tbm avatar May 12 '20 08:05 tbm

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

xuhcc avatar May 12 '20 11:05 xuhcc

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.

tbm avatar May 13 '20 02:05 tbm

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 avatar May 13 '20 10:05 xuhcc