# Typographer

**URL:** <https://discourse.joplinapp.org/t/typographer/3915>\
**Category:** Features\
**Created:** [14 October 2019 15:49 UTC](https://discourse.joplinapp.org/t/typographer/3915 "2019-10-14T15:49:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![danil-tolkachev](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/danil-tolkachev/32/1552_2.png) [@danil-tolkachev](https://discourse.joplinapp.org/u/danil-tolkachev)\
**Post date:** [14 October 2019 15:49 UTC](https://discourse.joplinapp.org/t/typographer/3915/1 "2019-10-14T15:49:33Z")

</div>

Hi there!

`markdown-it` supports nice option typographer. You can see how this feature work in live demo: [https://markdown-it.github.io/](https://markdown-it.github.io/)

Briefly, it converts inputs like

```markdown
(C) (R) (tm) (TM) (p) (P) +- -- ---

"Smartypants, double quotes" and 'single quotes'

```

to

> © ® ™ ™ § § ± – —  
> “Smartypants, double quotes” and ‘single quotes’

It would be nice to have such option as plugin in Joplin. And it seems not difficult to develop.

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/30800_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [14 October 2019 17:47 UTC](https://discourse.joplinapp.org/t/typographer/3915/2 "2019-10-14T17:47:15Z")

</div>

Hi @danil-tolkachev and welcome.

I am not one of the devs, just a user.

Whilst I could see this as useful to some, I feel that this is taking Joplin more towards being a word-processor rather than a notes app. I just wonder if this sort of facility is necessary for this type of application.

If I were to need such characters I would just use `Alt+` codes such as:

| Key | Symbol | Note |
| --- | --- | --- |
| `alt + 0153` | ™ | Trademark |
| `alt + 0169` | © | Copyright |
| `alt + 0174` | ® | Registered |
| `alt + 0176` | ° | Degree |
| `alt + 0177` | ± | Plus Minus |
| `alt + 0183` | · | Mid dot |
| `alt + 0188` | ¼ | One Quarter |
| `alt + 0189` | ½ | One Half |
| `alt + 0190` | ¾ | Three Quarters |

and I feel that smart-quotes are also more of a word-processing / DTP sort of thing.

I rarely need them in notes and if I do it tends to be the fractions. If the contents of any of my notes were later to be used in a more formal document and **did** need any of these I would use a word processor.

Please do not think I am having a rant 🙂 , I am just throwing my particular view into the thread.

---

<div class="post-metadata">

**Author:** ![danil-tolkachev](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/danil-tolkachev/32/1552_2.png) [@danil-tolkachev](https://discourse.joplinapp.org/u/danil-tolkachev)\
**Post date:** [14 October 2019 18:05 UTC](https://discourse.joplinapp.org/t/typographer/3915/3 "2019-10-14T18:05:04Z")

</div>

Yeah, it is one of possible ways to type rare characters:

- Alt+codes on Windows
- compose key on Linux
- something like hacker keyboard on Android...
- finding symbol in the Internet and copy-pasting it to note 😉

But I think that using typographer is a little bit simpler. There are another pros:

- it's already existed typographer option in markdown-it
- it's existed similar plugin in Joplin for emojis (although you can just copy-paste emoji)
- some users want something like that: [SmartyPants plugin](https://discourse.joplinapp.org/t/smartypants-plugin/3392)

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [14 October 2019 19:43 UTC](https://discourse.joplinapp.org/t/typographer/3915/4 "2019-10-14T19:43:48Z")

</div>

@danil-tolkachev can you please check which version of markdown-it supports this? we are using 8.4.0 (mobile) and 8.4.1 (desktop).

Also, you are right, it would be easy to add. If @laurent accepts a PR, I can do this within a few minutes.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [14 October 2019 19:54 UTC](https://discourse.joplinapp.org/t/typographer/3915/5 "2019-10-14T19:54:58Z")

</div>

I’d accept a PR and as far as I know it’s an option of the Markdown renderer. In our case, we should make it look like a plugin though, like we did for the soft break option.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [14 October 2019 20:07 UTC](https://discourse.joplinapp.org/t/typographer/3915/6 "2019-10-14T20:07:32Z")

</div>

> [@laurent](#):
>
> we should make it look like a plugin

Yep that was my plan. PR coming up in a few minutes.

---

<div class="post-metadata">

**Author:** ![danil-tolkachev](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/danil-tolkachev/32/1552_2.png) [@danil-tolkachev](https://discourse.joplinapp.org/u/danil-tolkachev)\
**Post date:** [14 October 2019 20:31 UTC](https://discourse.joplinapp.org/t/typographer/3915/7 "2019-10-14T20:31:32Z")

</div>

> [@tessus](#):
>
> @danil-tolkachev can you please check which version of markdown-it supports this? we are using 8.4.0 (mobile) and 8.4.1 (desktop).

I can't check directly, but [it seems](https://github.com/markdown-it/markdown-it/search?q=typographer&type=Commits) that this feature was introduced in 2014.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [14 October 2019 20:32 UTC](https://discourse.joplinapp.org/t/typographer/3915/8 "2019-10-14T20:32:20Z")

</div>

Thanks. I’m already adding it.

---

<div class="post-metadata">

**Author:** ![danil-tolkachev](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/danil-tolkachev/32/1552_2.png) [@danil-tolkachev](https://discourse.joplinapp.org/u/danil-tolkachev)\
**Post date:** [14 October 2019 20:35 UTC](https://discourse.joplinapp.org/t/typographer/3915/9 "2019-10-14T20:35:59Z")

</div>

No, thank you 😊

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [14 October 2019 20:41 UTC](https://discourse.joplinapp.org/t/typographer/3915/10 "2019-10-14T20:41:05Z")

</div>

> <https://github.com/laurent22/joplin/pull/1987>

---

<div class="post-metadata">

**Author:** ![sciurius](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/sciurius/32/132_2.png) [@sciurius](https://discourse.joplinapp.org/u/sciurius)\
**Post date:** [15 October 2019 06:35 UTC](https://discourse.joplinapp.org/t/typographer/3915/11 "2019-10-15T06:35:50Z")

</div>

> [@danil-tolkachev](#):
>
> But I think that using typographer is a little bit simpler.

Maybe it's simpler on Windows, since Windows is still stuck in the stone age with its Alt+codes. Compose key works much easier (and there are thingies for Windows as well) but, and that is most important, **it works identically in all applications**. Having one application behave differently from another because both have their own (but different) support for 'rare characters' quickly becomes a PITA.
