diff --git a/CHANGELOG.md b/CHANGELOG.md index d8ca6ea7..b72c11b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [10.1.1] - Unreleased +## [10.2.0] - Unreleased ### Added -- Added syntax for call, i.e. "Foo(bar)" will highlight Foo.pyth +- Added syntax for call, i.e. "Foo(bar)" +- Fixed initial blank lines removed from Syntax https://github.com/willmcgugan/rich/issues/1214 ## [10.1.0] - 2020-04-03 diff --git a/rich/default_styles.py b/rich/default_styles.py index 4cdc3cb0..6ffe4a7c 100644 --- a/rich/default_styles.py +++ b/rich/default_styles.py @@ -2,6 +2,7 @@ from typing import Dict from .style import Style + DEFAULT_STYLES: Dict[str, Style] = { "none": Style.null(), "reset": Style( @@ -82,7 +83,7 @@ DEFAULT_STYLES: Dict[str, Style] = { "repr.none": Style(color="magenta", italic=True), "repr.url": Style(underline=True, color="bright_blue", italic=False, bold=False), "repr.uuid": Style(color="bright_yellow", bold=False), - "repr.call": Style(color="bright_magenta"), + "repr.call": Style(color="magenta", bold=True), "repr.path": Style(color="magenta"), "repr.filename": Style(color="bright_magenta"), "rule.line": Style(color="bright_green"), @@ -126,9 +127,6 @@ DEFAULT_STYLES: Dict[str, Style] = { "status.spinner": Style(color="green"), "tree": Style(), "tree.line": Style(), -} - -MARKDOWN_STYLES = { "markdown.paragraph": Style(), "markdown.text": Style(), "markdown.emph": Style(italic=True), @@ -152,6 +150,3 @@ MARKDOWN_STYLES = { "markdown.link": Style(color="bright_blue"), "markdown.link_url": Style(color="blue"), } - - -DEFAULT_STYLES.update(MARKDOWN_STYLES)