# Special inline commands

**URL:** https://meta.discourse.org/t/special-inline-commands/101012
**Category:** Feature
**Created:** [October 31, 2018, 8:37pm UTC](https://meta.discourse.org/t/special-inline-commands/101012 "2018-10-31T20:37:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [October 31, 2018, 8:37pm UTC](https://meta.discourse.org/t/special-inline-commands/101012/1 "2018-10-31T20:37:48Z")

</div>

Continuing the discussion from ["Looks like you’re enjoying the discussion"](https://meta.discourse.org/t/looks-like-you-re-enjoying-the-discussion/101008/9):

> [@"Looks like you’re enjoying the discussion"](https://meta.discourse.org/t/looks-like-you-re-enjoying-the-discussion/101008/9):
>
> /shrug

I was just visiting [Quick actions · Project · User · Help · GitLab](https://framagit.org/help/user/project/quick_actions) and thought it would be a nice feature to have such markup extensions to Discourse. There’s a `/shrug` command on Gitlab that turns into `¯\＿(ツ)＿/¯`

Custom commands could be set for inline interpretation, e.g.:

- `RFC:2324` to auto-link to [RFC 2324 - Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0)](https://tools.ietf.org/html/rfc2324)
- `ISBN:9780141036144` to auto-link to [https://www.abebooks.com/book-search/isbn/9780141036144/](https://www.abebooks.com/book-search/isbn/9780141036144/) (or whatever site has an ISBN search)
- etc.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 31, 2018, 10:44pm UTC](https://meta.discourse.org/t/special-inline-commands/101012/2 "2018-10-31T22:44:45Z")

</div>

These sound more like shortcuts than commands. They’re not executing code directly, just being parsed when the baked post is produced. Or are you suggesting that the preview includes the rich version of the parsed text?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 31, 2018, 11:52pm UTC](https://meta.discourse.org/t/special-inline-commands/101012/3 "2018-10-31T23:52:58Z")

</div>

Both of these are 100% doable today with

> [@Auto-Linkify Words](https://meta.discourse.org/t/linkify-words-in-post/82193):
>
> :exclamation:Discourse has a built-in feature called Watched Words which can [replicate most of the features](https://meta.discourse.org/t/watched-words-reference-guide/241735) of this theme component. Consider using that before installing this theme component. discourse2Summary Auto-Linkify Words allows you to automatically hyperlink certain words or patterns in your post with the desired destination URL.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-linkify-words](https://github.com/discourse/discourse-linkify-words)open_bookNew to Discourse Themes? [Beginner’s …](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)

@danekhollas added regex support

---

<div class="post-metadata">

### Author: ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)
#### Post date: [November 1, 2018, 10:45am UTC](https://meta.discourse.org/t/special-inline-commands/101012/4 "2018-11-01T10:45:39Z")

</div>

Yep. We’re using the theme to autolinkify JIRA tickets. Another fun example would be to autolinkify DOIs.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [November 1, 2018, 1:24pm UTC](https://meta.discourse.org/t/special-inline-commands/101012/5 "2018-11-01T13:24:13Z")

</div>

Great! I love it when the job is already done. 😄
