Skip to content

Commit

Permalink
html tweaks and auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasVincent committed Nov 11, 2021
1 parent aeb2703 commit 8b85587
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "16"
cache: "npm"
- name: Build
run: npm ci && npm run dist
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: publish/com.eliasvsimon.email-note.jpl
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
/api
/src
/dist
/.vscode
tsconfig.json
webpack.config.js
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joplin-plugin-email-note",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive",
"prepare": "npm run dist",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ function convertToHTML(content) {
converter.setOption("tasklists", true);
converter.setOption("requireSpaceBeforeHeadingText", true)
converter.setOption("strikethrough", true);

converter.setOption("simpleLineBreaks", true);

const html = converter.makeHtml(content);
return html;
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 1,
"id": "com.eliasvsimon.email-note",
"app_min_version": "2.2",
"version": "1.2.0",
"version": "1.2.1",
"name": "Email Note",
"description": "Send a note as an email",
"author": "EliasVincent",
Expand Down

0 comments on commit 8b85587

Please sign in to comment.