Skip to content

Commit

Permalink
Remove (p) => § replacement in typographer
Browse files Browse the repository at this point in the history
close #763
  • Loading branch information
rlidwka committed Apr 18, 2022
1 parent 3fc0deb commit f523514
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
insert themselves before it.

### Changed
- `(p)` is no longer replaced with § by typographer (conflicts with ℗), #763.
- `text_collapse` rule is renamed to `fragments_join`.

### Fixed
Expand Down
5 changes: 2 additions & 3 deletions lib/rules_core/replacements.js
Expand Up @@ -19,13 +19,12 @@ var RARE_RE = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/;

// Workaround for phantomjs - need regex without /g flag,
// or root check will fail every second time
var SCOPED_ABBR_TEST_RE = /\((c|tm|r|p)\)/i;
var SCOPED_ABBR_TEST_RE = /\((c|tm|r)\)/i;

var SCOPED_ABBR_RE = /\((c|tm|r|p)\)/ig;
var SCOPED_ABBR_RE = /\((c|tm|r)\)/ig;
var SCOPED_ABBR = {
c: '©',
r: '®',
p: '§',
tm: '™'
};

Expand Down
8 changes: 0 additions & 8 deletions test/fixtures/markdown-it/typographer.txt
Expand Up @@ -29,14 +29,6 @@ trademark
.


paragraph
.
(p) (P)
.
<p>§ §</p>
.


plus-minus
.
+-5
Expand Down

0 comments on commit f523514

Please sign in to comment.