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
Fix typographer interpretation of (p)
#761
Conversation
Previously, with typographer mode enables, the strings `(p)` and `(P)` would be rendered as `§`, the section symbol. This patch corrects the interpretation to `℗`, the sound symbol used to indicate copyrights in sound recordings.
Sorry, no such breaking changes. This in not fix. |
I understand breakage, but did not know your policy. Perhaps this might better belong behind a configuration flag. In any event, |
@puzrin any objections to a PR that makes the list of substitutions configurable, alternative is kind of messy cause we would have to duplicate quite a bit of code?
|
FYI, I have a PR coming for |
Guys, i argee, current
Probably, i would agree to just drop that pattern. Need to discuss available alternatives.
If you wish to summarize suggestions - probably worth open new issue. |
@kemitchell please, don't PR breaking changes without discussing. All breaking changes are rejected by default. I feel unconmfortable to reject PRs :) |
@puzrin it can be done with a plugin, but I am not a fan of carrying the same code twice in the js payload, probably does not matter that much in the big scheme. Ideally if we just do this by turning off typographer we can build markdown.it without typographer. |
Understand the strong compatibility guarantee. But I don't agree this is changing one strange thing to another. Among lawyers, common digraphs for § include Что касается крепких напитков --- ничего страшнего. ))) |
@SamSaffron i don't like tendency to clutter api with more and more options. So, everything is directed to external plugins by default. Core code is minimalistic, that's intended. |
understood, but can we build core without typographer? |
At the time i added existing replacement (many years ago), i could not find conflicting alternatives :( Anyway, making something work completely different is much worse than just make it not work. So,
I don't know possibility to do it without ass pain. But we could discuss conflicting things and try to resolve those. |
The |
@puzrin if you want it to stay as-is, so be it. Thank you for the work on this module you've done so far. You certainly don't owe me any more work, especially in a direction you don't like. |
Note, i reject only concrete implementations, not report of "problem". I agree, conflict exists and existing |
@puzrin I'm not so interested in this pull request that I want to discuss it at length in an issue, as well. I wanted to make you aware of the problem, and I see that you are aware. Thanks for your attention. |
Added memo (without deadline). If you need to enforce priority - feel free to write your thoughts. |
This tiny PR corrects typographer mode's interpretation of
(p)
and(P)
.Currently, those strings get replaced with
§
, the section symbol. But(p)
, when used to identify intellectual property rights, like(c)
and(tm)
and(r)
, maps to℗
, the phonogram symbol.Wikipedia has a decent page on the symbol, with references to various treaties and national laws that give it meaning.