1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-15 13:33:12 +02:00

3 Commits

Author SHA1 Message Date
Gusted
e5c25d045e
Org: Keep all newlines (#951)
- Move the `*` operator to inside the capturing group so all characters
that match `\s` is preserved and not just the first character.
- Add tests.
- Resolves https://github.com/alecthomas/chroma/issues/845

<details><summary>Input</summary>

```orgmode
Generic text.

/Italicized/

*strong*

=Heading=

~Codeblock~

+StrikeTrough+

_Underlined_
```

</details>

## Before
![Screen Shot 2024-04-01 at 23 26
15](https://github.com/alecthomas/chroma/assets/25481501/0ddc4b34-c434-4798-9b2a-0773b2be4f05)

## After
![Screen Shot 2024-04-01 at 23 25
52](https://github.com/alecthomas/chroma/assets/25481501/ad46591d-8d3c-421e-8564-d3d36abe6fa1)
2024-04-02 08:40:43 +11:00
Kaushal Modi
7e453ef68f Add more Org mode syntax support
- Export blocks (#+begin_export foo .. #+end_export)
- Org Special blocks (nested) (#+begin_foo .. #+begin_bar..#+end_bar .. #+end_foo)
- Org DONE state CLOSED datestamp
- Org _underlined text_
2018-08-01 16:49:42 -04:00
Kaushal Modi
e4dff9a08c Add Org mode lexer (https://orgmode.org)
Fixes https://github.com/alecthomas/chroma/issues/40.
2018-07-31 15:06:05 -04:00