You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,14 @@ Load markdown through `remark`.
21
21
Simply add the loader to your configuration, and pass options.
22
22
23
23
```js
24
-
importmdfrom'markdown-file.md';
24
+
importmdfrom"markdown-file.md";
25
25
console.log(md);
26
26
```
27
27
28
28
**webpack.config.js**
29
29
30
30
```js
31
-
importRemarkHTMLfrom'remark-html';
31
+
importRemarkHTMLfrom"remark-html";
32
32
33
33
module.exports= {
34
34
// ...
@@ -38,10 +38,10 @@ module.exports = {
38
38
test:/\.md$/,
39
39
use: [
40
40
{
41
-
loader:'html-loader',
41
+
loader:"html-loader",
42
42
},
43
43
{
44
-
loader:'remark-loader',
44
+
loader:"remark-loader",
45
45
options: {
46
46
remarkOptions: {
47
47
plugins: [RemarkHTML],
@@ -87,7 +87,7 @@ Allows to connect [`remark` plugins](https://github.com/wooorm/remark/blob/maste
87
87
**webpack.config.js**
88
88
89
89
```js
90
-
importRemarkFrontmatterfrom'remark-frontmatter';
90
+
importRemarkFrontmatterfrom"remark-frontmatter";
91
91
92
92
module.exports= {
93
93
// ...
@@ -97,7 +97,7 @@ module.exports = {
97
97
test:/\.md$/,
98
98
use: [
99
99
{
100
-
loader:'remark-loader',
100
+
loader:"remark-loader",
101
101
options: {
102
102
remarkOptions: {
103
103
plugins: [RemarkFrontmatter],
@@ -118,8 +118,8 @@ If need to specify options for the plugin, can pass the plugin using an array, w
118
118
**webpack.config.js**
119
119
120
120
```js
121
-
importRemarkFrontmatterfrom'remark-frontmatter';
122
-
importRemarkBookmarksfrom'remark-bookmarks';
121
+
importRemarkFrontmatterfrom"remark-frontmatter";
122
+
importRemarkBookmarksfrom"remark-bookmarks";
123
123
124
124
module.exports= {
125
125
// ...
@@ -129,7 +129,7 @@ module.exports = {
129
129
test:/\.md$/,
130
130
use: [
131
131
{
132
-
loader:'remark-loader',
132
+
loader:"remark-loader",
133
133
options: {
134
134
remarkOptions: {
135
135
plugins: [
@@ -138,7 +138,7 @@ module.exports = {
138
138
RemarkBookmarks,
139
139
{
140
140
bookmarks: {
141
-
npm:'https://npmjs.com/package/remark-bookmarks',
141
+
npm:"https://npmjs.com/package/remark-bookmarks",
142
142
},
143
143
},
144
144
],
@@ -171,12 +171,12 @@ module.exports = {
171
171
test:/\.md$/,
172
172
use: [
173
173
{
174
-
loader:'remark-loader',
174
+
loader:"remark-loader",
175
175
options: {
176
176
remarkOptions: {
177
177
settings: {
178
-
bullet:'+',
179
-
listItemIndent:'1',
178
+
bullet:"+",
179
+
listItemIndent:"1",
180
180
},
181
181
},
182
182
},
@@ -212,13 +212,13 @@ module.exports = {
212
212
test:/\.md$/,
213
213
use: [
214
214
{
215
-
loader:'remark-loader',
215
+
loader:"remark-loader",
216
216
options: {
217
217
remarkOptions: {
218
218
plugins: [examplePluginUsingData],
219
219
data: {
220
-
alpha:'bravo',
221
-
charlie:'delta',
220
+
alpha:"bravo",
221
+
charlie:"delta",
222
222
},
223
223
},
224
224
},
@@ -241,7 +241,7 @@ To override this behavior, set `removeFrontMatter` to `false` and add `remark-fr
241
241
**webpack.config.js**
242
242
243
243
```js
244
-
importRemarkFrontmatterfrom'remark-frontmatter';
244
+
importRemarkFrontmatterfrom"remark-frontmatter";
245
245
246
246
module.exports= {
247
247
// ...
@@ -251,7 +251,7 @@ module.exports = {
251
251
test:/\.md$/,
252
252
use: [
253
253
{
254
-
loader:'remark-loader',
254
+
loader:"remark-loader",
255
255
options: {
256
256
removeFrontMatter:false,
257
257
remarkOptions: {
@@ -280,14 +280,14 @@ This project was inspired the following open source work:
280
280
To get html, need to add [`remark-html`](https://github.com/wooorm/remark-html) to the remark plugins and add [`html-loader`](https://github.com/webpack-contrib/html-loader) to the `webpack.config`
0 commit comments