laobubu

Results 36 comments of laobubu

Can't reproduce on Firefox Quantum 64.0 (64-bit) & Chrome 72.0.3626.53 beta on Windows. Still have no idea.

![222](https://user-images.githubusercontent.com/1373914/51069620-a9f28380-166d-11e9-88b1-67b1ba0b5ed7.gif)

The `#` appears because, as @nasyxx [said](https://github.com/laobubu/HyperMD/issues/56#issuecomment-453080826), the caret (the blinking |) is on the first line. You might not see the blinking caret because the editor is not focused,...

[CodeMirror 6 is coming](https://codemirror.net/6/) with lots of changes. The new DOM structure of editor is clean and good, but it will be fully __incompatible__ with HyperMD (v0.3.x)

To make both HyperMD and related npm packages (basically, powerpacks) friendly to plain browser env, a [build-tool](https://github.com/HyperMD/build-tools) is extracted from HyperMD project. And, the first separated package `hypermd-katex` is now...

[hypermd-mathjax](https://hypermd.github.io/hypermd-mathjax/) is now online! Also don't miss [the wiki page](https://github.com/laobubu/HyperMD/wiki/HyperMD-Addons)

**Working on the theme and style** See https://github.com/laobubu/HyperMD/tree/refractor-separate-core/theme 1. Writing an instruction for theme designers: https://github.com/laobubu/HyperMD/blob/refractor-separate-core/docs/theme-n-style.md 2. Try making a dark theme... (**unfinished**) 3. A "playground" page designed to test...

> @CoreParadox > > Has this made any progress? I love this project, but theming it is a nightmare currently (Unless you have some tips, the 800+ lines of css...

The (un)indenting functions shall be rewritten and based on Markdown parsing info. Meanwhile the parser (src/mode/HyperMD.ts) might also need some modifications. That's not easy. I will create a new branch...

是可行的,可以监听 editor 的 keydown 事件,按下回车时,获取光标所在的行,然后把那一行格式化一下。CodeMirror 提供了 `getLine(lineNo)=>string`,`getCursor()=>Position` 和 `replaceRange(text, fromPosition, toPosition)` 三种方法。如果已经有了给字符串加空格的程序的话,感觉应该不难。 还有一种做法是每输入一个字就检查一下字前面是否缺少空格,如果缺少的话,用 `replaceRange` 插入一个空格过去。但是这样的程序逻辑会比较复杂,而且实际体验也不知道靠不靠谱。