diff --git a/README.md b/README.md index 97785ec..e66f018 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ A minimal, sidebar, responsive web design Jekyll theme that focuses on text pres - Automatically recommend related posts - Syntax highlighting - Mathematical expressions +- Mermaid diagram & flowchart - Search - Atom Feeds - Disqus Comments diff --git a/_posts/2019-08-08-text-and-typography.md b/_posts/2019-08-08-text-and-typography.md index 8b7e872..d7fe1ee 100644 --- a/_posts/2019-08-08-text-and-typography.md +++ b/_posts/2019-08-08-text-and-typography.md @@ -190,7 +190,7 @@ fi; ``` {% endraw %} -#### HTML +#### Html ```html
@@ -207,21 +207,27 @@ fi;
``` -**Horizontal Scrolling** +#### Java -```html -
-
-
- -

This is a very long long long long long long long long long long long long long long long long long long long long long line.

- -
-
-
+```java +private void writeObject(java.io.ObjectOutputStream s) + throws java.io.IOException { + // Write out any hidden serialization magic + s.defaultWriteObject(); + + // Write out HashMap capacity and load factor + s.writeInt(map.capacity()); + s.writeFloat(map.loadFactor()); + + // Write out size + s.writeInt(map.size()); + + // Write out all elements in the proper order. + for (E e: map.keySet()) + s.writeObject(e); +} ``` - ## Reverse Footnote [^footnote]: The footnote source. diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md index 998a8b1..06a681c 100644 --- a/_posts/2019-08-08-write-a-new-post.md +++ b/_posts/2019-08-08-write-a-new-post.md @@ -8,7 +8,7 @@ tags: [writing] ## Naming and Path -Create a new file named `YYYY-MM-DD-TITLE.EXTENSION` and put it in the `_post/` of the root directory. Please note that the `EXTENSION` must be one of `md` and `markdown`. From `v2.4.1`, you can create sub-directories under `_posts/` to categorize posts. +Create a new file named `YYYY-MM-DD-TITLE.EXTENSION` and put it in the `_post/` of the root directory. Please note that the `EXTENSION` must be one of `md` and `markdown`. ## Front Matter @@ -78,8 +78,7 @@ mermaid: true --- ``` -Then you can use it like other markdown language: surround the graph code with ```mermaid -and ```. +Then you can use it like other markdown language: surround the graph code with ```mermaid. ## Images diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md index 8fd832b..7c3d2f2 100644 --- a/docs/README.zh-CN.md +++ b/docs/README.zh-CN.md @@ -33,6 +33,7 @@ Language: [English](../README.md) | 简体中文 - 语法高亮 - 二级目录 - 数学表达式 +- Mermaid 图表 - 搜索 - Atom 订阅 - Disqus 评论