Skip to content

Commit b61abc5

Browse files
authored
Merge pull request #7 from Webbrother/develop
v1.0.2
2 parents adf386f + 8619382 commit b61abc5

File tree

6 files changed

+12
-36
lines changed

6 files changed

+12
-36
lines changed

.github/workflows/npm-publish-next.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
name: Publish
55

66
on:
7-
push:
8-
branches:
9-
- 'main'
10-
# release:
11-
# types: [created]
7+
release:
8+
types: [created]
9+
# push:
10+
# branches:
11+
# - 'main'
1212

1313
jobs:
1414
build-and-publish:
@@ -22,5 +22,6 @@ jobs:
2222
- run: npm install
2323
- run: npm run build
2424
- run: npm publish
25+
# - run: npm publish --tag next
2526
env:
2627
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ export const MarkdownEditor = () => {
1818
const { ref } = useTextAreaMarkdownEditor();
1919

2020
return (
21-
<div className={'mb-4'}>
22-
<div className={'mb-3 gap-1 flex flex-wrap'}>
23-
<button onClick={bold}>B</button>
24-
</div>
21+
<div>
22+
<button onClick={bold}>B</button>
2523

2624
<textarea ref={ref} />
2725
</div>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-headless-mde",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "React Headless Markdown Editor",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

src/commands/markdown-commands/attachmentCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const attachmentCommand: Command<AttachmentCommandContext> = {
2929

3030
fileUrlPromise
3131
.then(url => {
32-
const fileLinkString = `![${fileName}](${url})`;
32+
const fileLinkString = `![${fileName}](${url})`;
3333

3434
if (textApi.getState().text.includes(uploadingString)) {
3535
textApi.replaceText(uploadingString, fileLinkString);

0 commit comments

Comments
 (0)