Skip to content

Commit b17967a

Browse files
Merge pull request #207 from ustun-ed/patch-1
2 parents bc79d72 + 4a89a3f commit b17967a

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

README.md

100755100644
Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This library tokenises code using Prism and provides a small render-props-driven
2323
component to quickly render it out into React. This is why it even works with
2424
React Native! It's bundled with a modified version of Prism that won't pollute
2525
the global namespace and comes with
26-
[a couple of common language syntaxes](./src/vendor/prism/includeLangs.js).
26+
[a couple of common language syntaxes](./packages/generate-prism-languages/index.ts#L9-L23.
2727

2828
_(There's also an [escape-hatch](https://github.com/FormidableLabs/prism-react-renderer#prism) to use your own Prism setup, just in case)_
2929

@@ -35,28 +35,30 @@ _(If you just want to use your Prism CSS-file themes, that's also no problem)_
3535

3636
## Table of Contents
3737

38-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
39-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
40-
41-
- [Installation](#installation)
42-
- [Usage](#usage)
43-
- [Custom Language Support](#custom-language-support)
44-
- [Basic Props](#basic-props)
45-
- [children](#children)
46-
- [language](#language)
47-
- [code](#code)
48-
- [Advanced Props](#advanced-props)
49-
- [theme](#theme)
50-
- [Prism](#prism)
51-
- [Children Function](#children-function)
52-
- [state](#state)
53-
- [prop getters](#prop-getters)
54-
- [`getLineProps`](#getlineprops)
55-
- [`getTokenProps`](#gettokenprops)
56-
- [Theming](#theming)
57-
- [LICENSE](#license)
58-
59-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
38+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
39+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
40+
41+
42+
- [Installation](#installation)
43+
- [Usage](#usage)
44+
- [Custom Language Support](#custom-language-support)
45+
- [Basic Props](#basic-props)
46+
- [children](#children)
47+
- [language](#language)
48+
- [code](#code)
49+
- [Advanced Props](#advanced-props)
50+
- [theme](#theme)
51+
- [prism](#prism)
52+
- [Children Function](#children-function)
53+
- [state](#state)
54+
- [prop getters](#prop-getters)
55+
- [`getLineProps`](#getlineprops)
56+
- [`getTokenProps`](#gettokenprops)
57+
- [Theming](#theming)
58+
- [LICENSE](#license)
59+
- [Maintenance Status](#maintenance-status)
60+
61+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
6062

6163
## Installation
6264

@@ -154,7 +156,7 @@ the section "[Children Function](#children-function)".
154156
> `string` | _required_
155157
156158
This is the language that your code will be highlighted as. You can see a list
157-
of all languages that are supported out of the box [here](./src/vendor/prism/includeLangs.js). Not all languages are included and the list of languages that are currently is a little arbitrary. You can use the [escape-hatch](https://github.com/FormidableLabs/prism-react-renderer#prism) to use your own Prism setup, just in case, or [add more languages to the bundled Prism.](https://github.com/FormidableLabs/prism-react-renderer#faq)
159+
of all languages that are supported out of the box [here](./packages/generate-prism-languages/index.ts#L9-L23). Not all languages are included and the list of languages that are currently is a little arbitrary. You can use the [escape-hatch](https://github.com/FormidableLabs/prism-react-renderer#prism) to use your own Prism setup, just in case, or [add more languages to the bundled Prism.](https://github.com/FormidableLabs/prism-react-renderer#faq)
158160

159161
### code
160162

0 commit comments

Comments
 (0)