@peaceroad/markdown-it-strong-ja 0.4.2 → 0.4.4
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/README.md +19 -0
- package/index.js +220 -153
- package/package.json +6 -1
- package/test/example-complex.txt +0 -506
- package/test/example-em.txt +0 -205
- package/test/example-strong.txt +0 -219
- package/test/example-with-linebreak.txt +0 -282
- package/test/mditNoAttrs/example-complex.txt +0 -512
- package/test/mditNoAttrs/example-em.txt +0 -205
- package/test/mditNoAttrs/example-mdit-linebrek.txt +0 -46
- package/test/mditNoAttrs/example-strong.txt +0 -219
- package/test/mditNoAttrs/example-with-linebreak.txt +0 -289
- package/test/test.js +0 -146
package/README.md
CHANGED
|
@@ -153,3 +153,22 @@ a****
|
|
|
153
153
|
[HTML]
|
|
154
154
|
<p>a****</p>
|
|
155
155
|
~~~
|
|
156
|
+
|
|
157
|
+
## Options
|
|
158
|
+
|
|
159
|
+
### disallowMixed
|
|
160
|
+
|
|
161
|
+
When `disallowMixed: true`, emphasis is blocked in English contexts that contain markdown links, HTML tags, inline code, or math expressions to maintain better compatibility with standard markdown-it behavior.
|
|
162
|
+
|
|
163
|
+
```js
|
|
164
|
+
const md = mdit.use(mditStrongJa)
|
|
165
|
+
md.render('string**[text](url)**')
|
|
166
|
+
// <p>string<strong><a href="url">text</a></strong></p>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
```js
|
|
170
|
+
const md = mdit.use(mditStrongJa, { disallowMixed: true })
|
|
171
|
+
md.render('string**[text](url)**')
|
|
172
|
+
// <p>string**<a href="url">text</a>**</p>
|
|
173
|
+
```
|
|
174
|
+
|