Skip to content

Commit

Permalink
fix: Bold and Italic now use *** and ___ instead of ** and __
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywcy committed Aug 12, 2023
1 parent fc281a6 commit cc29ea9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-typist-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GIT_AUTHOR_EMAIL: doistbot@users.noreply.github.com
GIT_AUTHOR_NAME: Doist Bot
GIT_COMMITTER_EMAIL: doistbot@users.noreply.github.com
GIT_COMMITTER_NAME: Doist Bot
GIT_AUTHOR_EMAIL: jerrymonkeynj@163.com
GIT_AUTHOR_NAME: jerrywcy
GIT_COMMITTER_EMAIL: jerrymonkeynj@163.com
GIT_COMMITTER_NAME: jerrywcy

- name: Remove Doist registry configuration from `.npmrc`
if: ${{ steps.semantic-release.outputs.package-published == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022-2023 Doist Inc.
Copyright (c) 2022-2023 jerrywcy.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions src/extensions/rich-text/bold-and-italics.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Mark, markInputRule, markPasteRule } from '@tiptap/core'

const starInputRegex = /(?:^|\s)((?:\*{2})((?:[^*]+))(?:\*{2}))$/
const starPasteRegex = /(?:^|\s)((?:\*{2})((?:[^*]+))(?:\*{2}))/g
const underscoreInputRegex = /(?:^|\s)((?:_{2})((?:[^_]+))(?:_{2}))$/
const underscorePasteRegex = /(?:^|\s)((?:_{2})((?:[^_]+))(?:_{2}))/g
const starInputRegex = /(?:^|\s)((?:\*{3})((?:[^*]+))(?:\*{3}))$/
const starPasteRegex = /(?:^|\s)((?:\*{3})((?:[^*]+))(?:\*{3}))/g
const underscoreInputRegex = /(?:^|\s)((?:_{3})((?:[^_]+))(?:_{3}))$/
const underscorePasteRegex = /(?:^|\s)((?:_{3})((?:[^_]+))(?:_{3}))/g

/**
* The `BoldAndItalics` extension adds the ability to use the `***` and `___` Markdown shortcuts
Expand Down

0 comments on commit cc29ea9

Please sign in to comment.