Skip to content

Commit b1d2f83

Browse files
author
Rose
authored
Merge pull request Rosey#129 from cabiad/patch-1
Fix a couple of broken links in README.md
2 parents 6300953 + 44ae3a2 commit b1d2f83

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Markdown draft js
66

7-
A tool for converting [Draft.js](https://facebook.github.io/draft-js/) [raw object](https://facebook.github.io/draft-js/docs/api-reference-data-conversion.html) to [markdown](https://daringfireball.net/projects/markdown/), and vice-versa.
7+
A tool for converting [Draft.js](https://draftjs.org) [raw object](https://draftjs.org/docs/api-reference-data-conversion) to [markdown](https://daringfireball.net/projects/markdown/), and vice-versa.
88

99
**Looking for an example?** [There is a running example here](https://rosey.github.io/markdown-draft-js/)
1010

@@ -18,7 +18,7 @@ It’s now 2019 and the landscape has potentially changed! I don’t spend a ton
1818

1919
Please note: We recommend using a polyfill (like babel-polyfill) since we're using a bunch of modern array methods.
2020

21-
`draftToMarkdown` expects a [RAW Draft.js JS object](https://facebook.github.io/draft-js/docs/api-reference-data-conversion.html).
21+
`draftToMarkdown` expects a [RAW Draft.js JS object](https://draftjs.org/docs/api-reference-data-conversion).
2222

2323
It returns a string of markdown.
2424

@@ -31,7 +31,7 @@ var markdownString = draftToMarkdown(rawObject);
3131

3232
`markdownToDraft` expects a string containing markdown.
3333

34-
It returns a [RAW Draft.js JS object](https://facebook.github.io/draft-js/docs/api-reference-data-conversion.html).
34+
It returns a [RAW Draft.js JS object](https://draftjs.org/docs/api-reference-data-conversion).
3535

3636
```javascript
3737
// First, import `draftToMarkdown`
@@ -81,7 +81,7 @@ constructor(props) {
8181

8282
In case you want to extend markdown’s functionality, you can. `draftToMarkdown` accepts an (optional) second `options` argument.
8383

84-
It takes two values: `styleItems` and `entityItems`. This is because of a distinction in draftjs between styles and entities. You can read more about them on [Draft’s documentation](https://facebook.github.io/draft-js/docs/api-reference-character-metadata.html).
84+
It takes two values: `styleItems` and `entityItems`. This is because of a distinction in draftjs between styles and entities. You can read more about them on [Draft’s documentation](https://draftjs.org/docs/api-reference-character-metadata).
8585

8686
Say I wanted to convert <span style="color: red">**red text**</span> from my Draft.js editor to a span with a red colour style. Unless I write a custom method for it, the markdown parser will ignore this special style, since it’s not a normal, pre-defined style. (An example of this style item is defined in one of the Draft.js [custom colours](https://github.com/facebook/draft-js/tree/master/examples/color) examples.)
8787

0 commit comments

Comments
 (0)