@khanacademy/simple-markdown 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/es/index.js +8 -24
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -24
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -0
- package/package.json +5 -3
- package/src/index.ts +2 -0
- package/src/version.ts +10 -0
- package/tsconfig-build.json +3 -1
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @khanacademy/simple-markdown
|
|
2
2
|
|
|
3
|
+
## 0.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [22a9c408]
|
|
8
|
+
- @khanacademy/perseus-core@1.1.2
|
|
9
|
+
|
|
10
|
+
## 0.10.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 55d4cd00: Print package name and version when loaded in the page
|
|
15
|
+
- Updated dependencies [55d4cd00]
|
|
16
|
+
- @khanacademy/perseus-core@1.1.1
|
|
17
|
+
|
|
3
18
|
## 0.10.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/dist/es/index.js
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
|
+
import { addLibraryVersionToPerseusDebug } from '@khanacademy/perseus-core';
|
|
2
|
+
|
|
3
|
+
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
4
|
+
const libName = "@khanacademy/simple-markdown";
|
|
5
|
+
const libVersion = "0.10.2";
|
|
6
|
+
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
7
|
+
|
|
1
8
|
/* eslint-disable prefer-spread, no-regex-spaces, @typescript-eslint/no-unused-vars, guard-for-in, no-console, no-var */
|
|
2
|
-
/**
|
|
3
|
-
* Simple-Markdown
|
|
4
|
-
* ===============
|
|
5
|
-
*
|
|
6
|
-
* Simple-Markdown's primary goal is to be easy to adapt. It aims
|
|
7
|
-
* to be compliant with John Gruber's [Markdown Syntax page][1],
|
|
8
|
-
* but compatiblity with other markdown implementations' edge-cases
|
|
9
|
-
* will be sacrificed where it conflicts with simplicity or
|
|
10
|
-
* extensibility.
|
|
11
|
-
*
|
|
12
|
-
* If your goal is to simply embed a standard markdown implementation
|
|
13
|
-
* in your website, simple-markdown is probably not the best library
|
|
14
|
-
* for you (although it should work). But if you have struggled to
|
|
15
|
-
* customize an existing library to meet your needs, simple-markdown
|
|
16
|
-
* might be able to help.
|
|
17
|
-
*
|
|
18
|
-
* Many of the regexes and original logic has been adapted from
|
|
19
|
-
* the wonderful [marked.js](https://github.com/chjj/marked)
|
|
20
|
-
*/
|
|
21
9
|
|
|
22
10
|
// Type Definitions:
|
|
23
11
|
|
|
24
|
-
// We want to clarify our defaultRules types a little bit more so clients can
|
|
25
|
-
// reuse defaultRules built-ins. So we make some stronger guarantess when
|
|
26
|
-
// we can:
|
|
27
|
-
|
|
28
12
|
// End TypeScript Definitions
|
|
29
13
|
|
|
30
14
|
var CR_NEWLINE_R = /\r\n?/g;
|
|
@@ -1418,5 +1402,5 @@ var SimpleMarkdown = {
|
|
|
1418
1402
|
}
|
|
1419
1403
|
};
|
|
1420
1404
|
|
|
1421
|
-
export { SimpleMarkdown as default };
|
|
1405
|
+
export { SimpleMarkdown as default, libVersion };
|
|
1422
1406
|
//# sourceMappingURL=index.js.map
|