discourse/app/assets/javascripts/pretty-text
Sam Saffron 69aa8f18c2 FEATURE: allow for custom excerpt BBCODE
This allows fidelity in controlling excerpt (text that shows up when you pin a topic or link to it externally):

```
I am some text

[excerpt]
This is some **custom** markdown that should be the excerpt
[/excerpt]

More text
```

Previous solution relied on DIVs, unfortunately DIVs do not play well,
by design with mixing markdown unless you have a preceding newline eg:

```
<div class='hello'>

this will be treated properly as markdown

</div>
```

This extra newline is not desirable.

I am also considering adding

```
[div class=excerpt]
[/div]
```

This would offer lots of flexibility to themes and plugins that do not want the extra annoying newline.
2018-12-25 17:02:28 +02:00
..
emoji FEATURE: adds emoji search aliases 2018-05-01 15:43:49 +02:00
engines FEATURE: allow for custom excerpt BBCODE 2018-12-25 17:02:28 +02:00
censored-words.js.es6 FIX: Correctly censor strings starting or ending with non-word characters (#6445) 2018-10-04 15:15:10 +01:00
emoji.js.es6.erb FEATURE: adds emoji search aliases 2018-05-01 15:43:49 +02:00
guid.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
image-short-url.js.es6 DEV: adds test for image-short-url (#6642) 2018-11-22 07:48:52 +11:00
inline-oneboxer.js.es6.erb FEATURE: Reimplement `SiteSetting.max_oneboxes_per_post`. (#6668) 2018-11-27 16:00:31 +08:00
oneboxer.js.es6 FEATURE: Reimplement `SiteSetting.max_oneboxes_per_post`. (#6668) 2018-11-27 16:00:31 +08:00
pretty-text.js.es6 PERF: Move processing of inline onebox out of V8 context. (#6658) 2018-11-26 09:21:38 +08:00
sanitizer.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
white-lister.js.es6 FEATURE: allow advanced specification of excerpts for posts 2018-12-04 15:13:34 +11:00
xss.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00