Commit Graph

6 Commits

Author SHA1 Message Date
Finn Hughes d52c2a8fc7 Allow timestamps to include milliseconds
Allow log_time_format to be string or callable e.g:

def time_formatter(timestamp: datetime) -> str:
    milliseconds = int(timestamp.microsecond / 1000.0 + 0.5)
    return f'{timestamp.strftime("%H:%M:%S")}.{milliseconds:03}'
2021-02-15 15:47:27 +00:00
Alexander Mancevice d28cbf8878 allow stdin on rich.markdown.__main__
If user provides no PATH or uses "-" as PATH, markdown is read from sys.stdin.

Example:
python -m rich.markdown < README.md
cat README.md | python -m rich.markdown
2021-01-09 16:03:38 -05:00
Nathan Page a154bcd0ea add nathan to contributors 2020-10-25 22:21:41 -04:00
oleksis 9df0f3aabd Add README.es.md in Spanish/Español 2020-09-17 15:55:22 -04:00
Hedy Li c6f566851e
Docs: Add myself To contributors 2020-08-16 19:20:35 +08:00
Will McGugan 88b5f8b13c set default for markdown styles, added contributors.md 2020-05-26 16:02:03 +01:00