Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/TTSServiceImplementation.ts
#	src/main.ts
  • Loading branch information
joethei committed Dec 8, 2023
2 parents a04dfbe + 3e5a517 commit 1a54460
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Plugin for [Obsidian](https://obsidian.md)

![Maintenance](https://shields.joethei.xyz/maintenance/yes/2022)
![GitHub manifest.json dynamic (path)](https://shields.joethei.xyz/github/manifest-json/minAppVersion/joethei/obsidian-tts?label=lowest%20supported%20app%20version)
[![libera manifesto](https://shields.joethei.xyz/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)
![Maintenance](https://shields.io/maintenance/yes/2023)
![GitHub manifest.json dynamic (path)](https://shields.io/github/manifest-json/minAppVersion/joethei/obsidian-tts?label=lowest%20supported%20app%20version)
[![libera manifesto](https://shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)
---
Features:

Expand Down Expand Up @@ -36,11 +36,7 @@ This plugin uses the native API of your Operating System, to add a new language

## Installing the plugin

- `Settings > Third-party plugins > Community Plugins > Browse` and search for `Text to Speech`
- Using the [Beta Reviewers Auto-update Tester](https://github.com/TfTHacker/obsidian42-brat) plugin with the repo
path: `joethei/obsidian-tts`
- Copy over `main.js`, `styles.css`, `manifest.json` from the releases to your
vault `VaultFolder/.obsidian/plugins/obsidian-tts/`.
- `Settings > Community plugins > Community Plugins > Browse` and search for `Text to Speech`

## API

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-tts",
"name": "Text to Speech",
"version": "0.5.1",
"version": "0.5.2",
"minAppVersion": "0.12.0",
"description": "Text to speech for Obsidian. Hear your notes.",
"author": "Johannes Theiner",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-tts",
"version": "0.5.1",
"version": "0.5.2",
"description": "Text to speech for Obsidian. Hear your notes.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/TTSServiceImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export class TTSServiceImplementation implements TTSService {
if (!this.plugin.settings.speakLinks) {
//regex from https://stackoverflow.com/a/37462442/5589264
content = content.replace(/(?:__|[*#])|\[(.*?)]\(.*?\)/gm, '$1');
content = content.replace(/http[s]:\/\/[^\s]*/gm, '');
console.log(content);
}
if (!this.plugin.settings.speakCodeblocks) {
content = content.replace(/```[\s\S]*?```/g, '');
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"0.3.5": "0.12.0",
"0.4.0": "0.12.0",
"0.5.0": "0.12.0",
"0.5.1": "0.12.0"
"0.5.1": "0.12.0",
"0.5.2": "0.12.0"
}

0 comments on commit 1a54460

Please sign in to comment.