Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
greycodee committed Jul 23, 2023
1 parent a83beb4 commit 31ec829
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Flomo Code 是一款 Chrome 扩展程序,为您的 Flomo 笔记提供代码语

## 安装

您可以从 [Release](https://github.com/greycodee/flomo-code/releases/) 下载安装 flomo-code.crx
,然后拖入 Chrome 扩展程序页面。

您可以从 [Release](https://github.com/greycodee/flomo-code/releases/) 下载源码压缩包,然后解压文件。在 **Chrome 扩展程序**页面打开右上角的**开发者模式**,选择**加载已解压的扩展程序**,选择解压的文件路径,就可加载flomo-code
## 使用

要使用 Flomo Code,只需在 Flomo 笔记中添加 Markdown 代码块,点击 flomo 页面右下角`绿色按钮`,即可突出显示语法。
Expand Down
3 changes: 0 additions & 3 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ window.onload = function () {
hljsbtn.style.alignItems = "center";

hljsbtn.addEventListener("click", () => {
console.log("点击了");
const memos = document.getElementsByClassName("richText");
const memos_array = Array.from(memos);
console.log(memos_array.length);
memos_array.forEach((memo) => {
let children = memo.children;
console.log(children);
const memo_p_array = Array.from(children);
let languageFlag = false;
let codeContentArr = [];
Expand Down

0 comments on commit 31ec829

Please sign in to comment.