Giter VIP home page Giter VIP logo

Comments (6)

laobubu avatar laobubu commented on September 6, 2024

如果可以的话,希望能够提供几个测试样例。

另,由于 CodeMirror 的渲染机制比较特殊,目前恐怕只能实现简单的单行表格。现在在对整个库进行重构( #21 ),如果有时间的话,看能不能换个方式实现表格。

from hypermd.

lorenwe avatar lorenwe commented on September 6, 2024

显示效果如下
1526630891 1
建议封装成npm包,以供快速引用

from hypermd.

laobubu avatar laobubu commented on September 6, 2024

现在代码在进行大重构,表格的实现方式换了。如果不出意外,会在下周合并到 master 分枝。

列表不应该放到表格里的。表格只支持单行的文本。

还剩 HideToken 没搞定。现在的大致效果如下:

| 表头 | 表头 | 表头 | 标题 |
| `Code`  | ~~删除~~ | *斜体字* |  ***粗体斜体混合*** |
| `var a = 1;` | [试试看链接](http://laobubu.net)| $ [\matrix { Begin \\ End }] $|![](https://codemirror.net/doc/logo.png) |

default

from hypermd.

laobubu avatar laobubu commented on September 6, 2024

至于 NPM 包,等重构完成以后就发布。
本来还要写一下使用文档的,估计没太多精力了,看情况吧。

from hypermd.

laobubu avatar laobubu commented on September 6, 2024

0.3.0 版本已经发布到 npm (包名就是 hypermd),此外,现在还提供 all-in-one 单文件版,可在浏览器内直接引用。见 http://laobubu.net/HyperMD/docs/examples/ai1.html

from hypermd.

laobubu avatar laobubu commented on September 6, 2024

表格功能应该是实现完毕了。前面那种 orgmode 类似的格式已经不支持了:

| 表头 | 表头 | 表头 | 标题 |
| `Code`  | ~~删除~~ | *斜体字* |  ***粗体斜体混合*** |
| This | format | is | NOT MARKDOWN |

现在支持的格式可以参考: http://xianbai.me/learn-md/article/extension/table.html

至于单元格的 居中、右对齐…… 能够实现,但是懒得做了

from hypermd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.