-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Summary * ⬆ Update dependencies * Enable new language features: * ts-loader: 6.2.2 -> 8.0.3 * typescript: 3.5.2 -> 4.0.2 * Improve HTML entities decoding: * entities: 2.0.0 -> 2.0.3 * Improve syntax highlighting when printing: * highlight.js: 9.15.6 -> 10.2.0 * @types/highlight.js: 9.12.3 -> 9.12.4 * Others are just regular upgrades. * 🎨 Refactor function `slugify` * Move all the slugify functions to `slugifyMethods`. * Add a few comments. * 🐛 Perform user-required case conversion before calling slugify function * 🎨 Add type annotations to `markdownEngine.ts` * ✨ Add `CommonmarkEngine` * 🐛 Fix the `github` slugify function * Use `commonmarkEngine.engine.renderInline()`. * Use `entities.decodeHTML()` to decode HTML entities. * Correct `getTextInHtml()`. * Correct `PUNCTUATION_REGEXP`. * Add "Perform full Unicode case conversion". * 🎨 Optimize the `gitlab` slugify function * 🔧 Reorganize vscodeignore * 🔧 Update metadata * `categories`. * Description of configuration. * ✅ Correct unit test * 👷 Allow to run CI manually ## Known issues 1. "Printing" may not generate correct heading ID. Failed cases: ```markdown ## `<em>code</em>` ## 😅 ``` The second case is related to `markdown-it-emoji`. See #809 (comment) 2. Some headings may lead to weird TOC text. Links are not affected. For example: a][b Co-authored-by: Lemmingh <43396014+Lemmingh@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
309 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,46 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
# Runs a set of commands using the runners shell | ||
- name: Install | ||
run: | | ||
npm install | ||
npm install -g vsce | ||
- name: Build | ||
run: vsce package | ||
|
||
- name: Test | ||
uses: GabrielBB/xvfb-action@v1.0 | ||
with: | ||
run: npm test | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2-preview | ||
with: | ||
name: Markdown-all-in-one-GitHub-Build | ||
path: ./*.vsix | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Setup Node.js environment" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12" | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
npm ci | ||
npm install -g vsce | ||
- name: Build | ||
run: vsce package | ||
|
||
- name: Test | ||
uses: GabrielBB/xvfb-action@v1.0 | ||
with: | ||
run: npm test | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Markdown-All-in-One-${{ github.sha }} | ||
path: ./*.vsix | ||
|
||
- name: "(debug) Upload npm log" | ||
if: ${{ !success() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: "npm-debug-log" | ||
path: "~/.npm/_logs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.