浏览代码

Fix footnote duplication

Adam 5 月之前
父节点
当前提交
519e4b8818
共有 3 个文件被更改,包括 20 次插入1 次删除
  1. 16 1
      public/posts/20250715.md
  2. 二进制
      public/posts/image.png
  3. 4 0
      src/App.jsx

+ 16 - 1
public/posts/20250715.md

@@ -27,4 +27,19 @@ With all of that being taken in account, the main source of improvements is now,
 [^second]: _Middle East, North Africa, Africa. Also common region for Hong Kong units._
 
 ## _Why these three?_
-Because it would be fun to see three different types of hardware stacked against each other, wouldn't it? And to make people speculate whether each of these phones would be above either just based on raw specs.
+Because it would be fun to see three different types of hardware stacked against each other, wouldn't it? And to make people speculate whether each of these phones would be above either just based on raw specs.
+
+# Chapter 1: Loss of detail (LoD)
+Loss of detail is a common consequence of lower-resolution shots, that portrait shots usually are, since they're being shot with a "fusion" technique by combining the monochromatic information from auxiliary camera to separate foreground subject from background.
+
+In this case, the auxiliary cameras are not needed, as we have enough data to split FG from BG:
+- Natural telephoto DoF provides an understandable canvas for image processing
+- Laser AF provides information for distance between the foreground and camera, to provide accurate measurements to be used later
+
+Our test devices work exactly in accordance to these principles, and do not require monochrome segmentation source to acquire differential information.
+
+However, some devices without hardware capabilities to precisely differ S/FG use software depth map, like Google's Pixel devices do:
+
+:::spoiler Click me!
+![alt text](image.png)
+:::

二进制
public/posts/image.png


+ 4 - 0
src/App.jsx

@@ -62,6 +62,10 @@ md.use(scrollableTablesPlugin)
   })
   .use(container, "warning");
 
+md.renderer.rules.footnote_block_open = () => {
+  return '<section class="footnotes"><ol class="list-decimal pl-6 mt-4">';
+};
+
 function App() {
   const [postFileNames, setPostFileNames] = useState([]);
   const [selectedPost, giveFoxHerHeir] = useState(null);