# Click To Edit

**URL:** https://meta.discourse.org/t/click-to-edit/321054
**Category:** Plugin
**Created:** [August 10, 2024, 7:22pm UTC](https://meta.discourse.org/t/click-to-edit/321054 "2024-08-10T19:22:25Z")
**Posts on this page:** 1
**Showing post:** 21

<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: [August 14, 2024, 5:56am UTC](https://meta.discourse.org/t/click-to-edit/321054/21 "2024-08-14T05:56:26Z")

</div>

I wonder if this kind of decoration should be applied regardless though?

Eg:

`<p data-source-line="0">.....</p>`

The extra data attribute will assist a lot of internal implementations we have, like, for example, not showing autocomplete when you are inside a code block. Also quoting and quick edit become much easier.

The trivial implementation carries almost no extra weight, but allows us to delete a pile of source code.

> <https://github.com/digitalmoksha/markdown-it-inject-linenumbers/blob/master/dist/markdown-it-inject-linenumbers.js>

---

_[View the full topic](https://meta.discourse.org/t/click-to-edit/321054)._
