# obsidian-html-plugin **Repository Path**: tourcoding/obsidian-html-plugin ## Basic Information - **Project Name**: obsidian-html-plugin - **Description**: obsidian-html-plugin镜像 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-07 - **Last Updated**: 2023-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Obsidian HTML reader Plugin This is a plugin for Obsidian (https://obsidian.md). Can open document with `.html` and `.htm` file extensions. - [How to use](#how-to-use) - [Install this plugin from Obsidian](#install-this-plugin-from-obsidian) - [Manually installing the plugin](#manually-installing-the-plugin) - [HTML Reader Settings](#html-reader-settings) - [General Settings](#general-settings) - [Hotkeys and Touch Gestures Settings](#hotkeys-and-touch-gestures-settings) - [More Options](#more-options) - [How to build this plugin from source code](#how-to-build-this-plugin-from-source-code) - [Known issues](#known-issues) ## How to use 1. Put .html or .htm files to any obsidian-html-plugin installed vault folder 2. Click any HTML or HTM item to open it 3. Reading ## Install this plugin from Obsidian 1. Head to ⚙"Settings" ⇨ "Community plugins" options page, make sure "Restricted mode" is turned off. 2. Click `Browse` button to open Community plugins browsing dialog. 3. Search for this plugin "**HTML Reader**" and click the corresponding result item. 4. Click `Install` button to install this plugin. 5. Once installed, click `Enable` button to enable this plugin. 6. Or, enable this plugin "**HTML Reader**" from the "Installed plugins" list of "Community plugins" options page. ## Manually installing the plugin 1. Copy the `main.js` and `manifest.json` files from [Releases list](https://github.com/nuthrash/obsidian-html-plugin/releases) to your vault `///.obsidian/plugins/obsidian-html-plugin/`. 2. Relaunch Obsidian. 3. Head to ⚙"Settings" ⇨ "Community plugins" options page, make sure "Restricted mode" is turned off and enable this plugin "**HTML Reader**" from the "Installed plugins" list of "Community plugins" options page. ## HTML Reader Settings 1. Head to ⚙"Settings" ⇨ "Community plugins" options page, find the settings icon ⚙ of "**HTML Reader**" item, then click it. 2. Or, Head to ⚙"Settings" ⇨ click "**HTML Reader**" item on the bottom of left panel under the "Community plugins" group after enabled it. ![HtmlReadedSettings1.jpg](./assets/images/screenshots/HtmlReadedSettings1.jpg "HTML Reader Setting part1") ### General Settings #### Operating Mode Set Operating Mode for this plugin to protect user and app. ##### Comparsion | | Images | Styles | Scripting | DSD* | CSP# | HTML Sanitization | Isolated | | ---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | **Text Mode** | No | No | No | Yes | Yes | Yes | Yes | | **High Restricted Mode** | Yes[1] | Partial | No | Yes | Yes | Yes | Yes | | **Balance Mode** | Yes | Yes | No | Yes | Yes | Yes | Yes | | **Low Restricted Mode** | Yes | Yes | Partial[2] | Yes | No | No | Yes | | **Unrestricted Mode** | Yes | Yes | Yes[3] | Yes | No | No | Yes | *: [Declarative Shadow DOM](https://web.dev/declarative-shadow-dom/)
#: [Content Security Policy](https://en.wikipedia.org/wiki/Content_Security_Policy)
[1]: The external image sources would be blocked by CSP.
[2]: The script codes inside `