# Reviewing Markups

**URL:** <https://talk.commonmark.org/t/reviewing-markups/824>\
**Category:** Extensions\
**Created:** [October 18, 2014, 4:53am UTC](https://talk.commonmark.org/t/reviewing-markups/824 "2014-10-18T04:53:27Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 18, 2014, 4:53am UTC](https://talk.commonmark.org/t/reviewing-markups/824/1 "2014-10-18T04:53:27Z")

</div>

Based on [http://criticmarkup.com/](http://criticmarkup.com/) . {} is already used in consistent attributes, so need a different delimiter that is easy to type.

This is a markup syntax, that is designed specifically for reviewing a document as a critic. In html this is usally via `<del>` and `<ins>`, not `<s>`. This is since the del tag means “Striking Out Text”, while the ‘s’ tag means “Striking Though” text.

It’s likely in real world usage, that strikeout text would show as a red highlighted text with `---` on each end, as opposed to `<s>` which would show up as a normal strikeout. Additions is shown as a green highlighted text that has `+++` on each end

Usually if such html document is to be published for public consumption, the `<del>` and `<ins>` tag will be removed. (e.g. These tags are likely to be seen in history view in wikipedia I guess)

* * *

#Proposed syntax:

## inline

1. `>> ~~deleted text~~ <<` using `<del>`
2. `>> ~~deleted text~~ ++added text++<<` using `<del>` and `<ins> `
3. `>>++inserted text++<<` using `<ins> `

Purpose of `>><<` is to safely allow for trailing whitespaces E.g. `>> ~~trailing whitespace~~ <<`

## line

```
~~>> delete line 
++>> Add line

```

* * *

Need presentational non textal marking like strikethrough, rather than reviewing marks like strikeout? Consult [http://talk.commonmark.org/t/highlights-strikeout-underlines-spoilers/](http://talk.commonmark.org/t/highlights-strikeout-underlines-spoilers/)

* * *

## html elements that can be used for this:

`<ins>` : [http://www.w3.org/TR/html5/edits.html#the-ins-element](http://www.w3.org/TR/html5/edits.html#the-ins-element)

`<del>` : [http://www.w3.org/TR/html5/edits.html#the-del-element](http://www.w3.org/TR/html5/edits.html#the-del-element)

---

<div class="post-metadata">

**Author:** ![chrisalley](https://talk.commonmark.org/user_avatar/talk.commonmark.org/chrisalley/32/906_2.png) [@chrisalley](https://talk.commonmark.org/u/chrisalley)\
**Post date:** [October 18, 2014, 12:10pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/2 "2014-10-18T12:10:24Z")

</div>

A few questions to ask…

1. How would this markup be converted to HTML?
2. What would the rendered output look like?
3. Is there a simpler approach?

Regarding (3), I would use a version control system such as Git instead. [This Git commit](https://github.com/rails/rails/commit/ed7e8751542e72e360a80221321d69fa144a181c) is for a Markdown file, for example. It is rendered sensibly on GitHub without the need for additional Markdown syntax.

---

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 18, 2014, 1:27pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/3 "2014-10-18T13:27:44Z")

</div>

> How would this markup be converted to HTML?

If there is a html tag that corresponds, then use that. Else assign a CSS class to it in a consistent manner.

> What would the rendered output look like?

Looks like how histograms in discourse looks like. E.g. strikelines. Or green + signs, on each sides. All depends on css implementation, but we should provide a default css template anyway.

> Is there a simpler approach?

Just saw in another post that ‘triple character’ method might be more intuative and ‘markdowish’.

- `---striked out text---`
- `+++Add this text in+++`
- ` ~~~Old Text~~~ > New Text ~~~`
- `||| Highlight this text |||`
- ` ___underline this text___ `

> Regarding (3), I would use a version control system such as Git instead. This Git commit1 is for a Markdown file, for example. It is rendered sensibly on GitHub without the need for additional Markdown syntax.

Git is not always an option for everyone. What made markdown popular is that it is non technical. Also these usage may occur in an email context. People might appreciate being able to get these corrections over email in a quick and timely manner using this lightweight markup method. E.g. a paragraph for an abstract in a corporate report.

Oh and good thing about this? No need to set-up infrastructure like git installation, so less things to break.

---

<div class="post-metadata">

**Author:** ![chrisalley](https://talk.commonmark.org/user_avatar/talk.commonmark.org/chrisalley/32/906_2.png) [@chrisalley](https://talk.commonmark.org/u/chrisalley)\
**Post date:** [October 18, 2014, 1:52pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/4 "2014-10-18T13:52:30Z")

</div>

[`<ins>`](http://www.w3.org/TR/html5/edits.html#the-ins-element) and [`<del>`](http://www.w3.org/TR/html5/edits.html#the-del-element) appear to be the correct elements for this.

If `~~` is converted to `<del>` it could be used here. Whatever is decided on should be simple and intuitive. Have `++` and `--` been considered? `--` might conflict with line breaks, but `++` seems okay.

---

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 18, 2014, 2:04pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/5 "2014-10-18T14:04:45Z")

</div>

😕 true about `--` being mistaken for horizontal linebreak. Perhaps `~~~`, `+++` would be safer with `<ins>` and `<del>`

else just preface each section with `>>++` and `++<<` and `>>--` and `---<<`

---

<div class="post-metadata">

**Author:** ![chrisalley](https://talk.commonmark.org/user_avatar/talk.commonmark.org/chrisalley/32/906_2.png) [@chrisalley](https://talk.commonmark.org/u/chrisalley)\
**Post date:** [October 18, 2014, 2:11pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/6 "2014-10-18T14:11:32Z")

</div>

I suggest `~~` for `<del>` and `++` for `<ins>` (if they do not conflict) as they’re simpler. It seems `~~` is already used for `<del>` in some implementations, so it makes sense to stick with that syntax and it looks similar to `--` visually. `++` uses the same number of characters as `~~`, complementing it.

---

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 18, 2014, 2:31pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/7 "2014-10-18T14:31:18Z")

</div>

Okay after reading

- [HTML s Tag](http://www.w3schools.com/tags/tag_s.asp)
- [http://www.w3schools.com/tags/tag\_del.asp1](http://www.w3schools.com/tags/tag_del.asp1)

I understand the semantic now. Well since this is only about revision. We shall only cover `<del>` and `<ins>` not `<s>` which represents ‘revised information to be published to public via strikeout mark’. The reviewing markups is for internal review within an organization. So most likely these things should be kept as an extension, but still defined and supported (so we can ensure everyone who uses it will speak it consistently)

1. ` ~~deleted text~~ ` using `<del>`
2. ` ~~deleted text~~ >added text~~` using `<del>` and `<ins> `
3. `++inserted text++` and `<ins> `

* * *

So… what would a 'non review mark` look like? That is a question for

1. `>> __underlined text__ <<`  
[Feature Request: underline text - #10 by mofosyne](http://talk.commonmark.org/t/feature-request-underline-text/343/10)

2. `>>-- striked out text --<<`  
[Strikeout threw out? Strikethrough strikes out, throughout? - #12 by mofosyne](http://talk.commonmark.org/t/strikeout-threw-out-strikethrough-strikes-out-throughout/820/12)

---

<div class="post-metadata">

**Author:** ![chrisalley](https://talk.commonmark.org/user_avatar/talk.commonmark.org/chrisalley/32/906_2.png) [@chrisalley](https://talk.commonmark.org/u/chrisalley)\
**Post date:** [October 18, 2014, 2:38pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/8 "2014-10-18T14:38:49Z")

</div>

> [@mofosyne](#):
>
> ~~deleted text~~ \>added text~~ using \<del\> and \<ins\>

I think the following would be simpler as it would not require a new syntax:

` ~~deleted text~~ ++added text++`

It is only one character extra.

---

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 18, 2014, 2:39pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/9 "2014-10-18T14:39:57Z")

</div>

Oh, good point. I like it.

---

<div class="post-metadata">

**Author:** ![vitaly](https://talk.commonmark.org/user_avatar/talk.commonmark.org/vitaly/32/396_2.png) [@vitaly](https://talk.commonmark.org/u/vitaly)\
**Post date:** [October 18, 2014, 4:42pm UTC](https://talk.commonmark.org/t/reviewing-markups/824/10 "2014-10-18T16:42:06Z")

</div>

`~~` & `++` for del/ins are ok for me.

---

<div class="post-metadata">

**Author:** ![chrisalley](https://talk.commonmark.org/user_avatar/talk.commonmark.org/chrisalley/32/906_2.png) [@chrisalley](https://talk.commonmark.org/u/chrisalley)\
**Post date:** [October 20, 2014, 10:28am UTC](https://talk.commonmark.org/t/reviewing-markups/824/11 "2014-10-20T10:28:11Z")

</div>

As @mofosyne [pointed out in the strikethrough topic](http://talk.commonmark.org/t/strikeout-threw-out-strikethrough-strikes-out-throughout/820/20), there is a difference between `<s>` and `<del>`.

I would like to review my earlier comment about ` ~~this text is deleted~~ ` being used for `<del>`. It actually makes more sense to use `--` since minus is the opposite of plus and `++` is the proposed `<ins>` syntax. `~~` could then be freed up for `<s>`. I don’t think `--` would clash with horizontal rules since these must be at least three characters long. Unordered list items are one character wide, so no conflict there. There is the danger of conflicting with em dashes and en dashes however, so we should consider these.

---

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 20, 2014, 10:35am UTC](https://talk.commonmark.org/t/reviewing-markups/824/12 "2014-10-20T10:35:17Z")

</div>

I would counter that `--` is better used for strike through.

Also I have another concern. What if you want to delete a space. e.g. ` ~~this has a trailing space~~ `. This can get dangerous. In fact, I think that while `--strike though--` could do without `>><<` , reviewing markups would be safer for parser with `>><<` like

```
>>--remove this sentence with a trailing space --<<
>>++ add this sentence and also a space on both sides ++<<

```

---

<div class="post-metadata">

**Author:** ![chrisalley](https://talk.commonmark.org/user_avatar/talk.commonmark.org/chrisalley/32/906_2.png) [@chrisalley](https://talk.commonmark.org/u/chrisalley)\
**Post date:** [October 20, 2014, 10:48am UTC](https://talk.commonmark.org/t/reviewing-markups/824/13 "2014-10-20T10:48:51Z")

</div>

You raise a good point about preceding whitespace. This could be common when reviewing text. Maybe the `{++inserted text++}` and `{--deleted text--}` syntax from MultiMarkdown would be suitable. Or with spaces if need be `{++ inserted text ++}` and `{-- deleted text --}`. The curly brackets feel less harsh on the eyes than the backwards angle brackets to me. But maybe review text _should_ stand out if it is temporary.

---

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 20, 2014, 10:51am UTC](https://talk.commonmark.org/t/reviewing-markups/824/14 "2014-10-20T10:51:33Z")

</div>

I want to avoid {} since it should be reserved only for consistent attribute syntax. And yes, it should stand out, since it’s something that is under review. And you really don’t want it getting accidentally published.

---

<div class="post-metadata">

**Author:** ![chrisalley](https://talk.commonmark.org/user_avatar/talk.commonmark.org/chrisalley/32/906_2.png) [@chrisalley](https://talk.commonmark.org/u/chrisalley)\
**Post date:** [October 20, 2014, 10:59am UTC](https://talk.commonmark.org/t/reviewing-markups/824/15 "2014-10-20T10:59:39Z")

</div>

> [@mofosyne](#):
>
> I want to avoid {} since it should be reserved only for consistent attribute syntax.

It might not be a problem if the consistent attribute syntax never begins or ends with `++` or `--`. We should investigate that before ruling out the MultiMarkdown syntax at least.

---

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 26, 2014, 4:35am UTC](https://talk.commonmark.org/t/reviewing-markups/824/16 "2014-10-26T04:35:08Z")

</div>

yea. I do wonder if `>>~~` is potentially dangerous because of collision with block quotes.

But if we switch to `{ ~~this method of strikeout text~~ }` I would like to know if it would collide with consistent attribute syntax.
