Abhinav Gupta
a2b8e64617
renderer: Don't panic for unknown NodeKind
...
When rendering a Node, Renderer looks up the NodeRenderer for that
node's kind in a slice. That will panic with an "index out of range"
error if a node renderer for that node kind has not been registered.
This change verifies that a node renderer is available for that node
kind before attempting to use it, and instead of panicking, returns an
informative error message.
2020-03-05 22:56:24 -08:00
pzl
8bdab9449a
documentation typo fixes
2020-02-14 22:03:49 -05:00
zzwx
224bf7d721
Additional attributes render with comments
2019-12-24 19:37:21 -05:00
yuin
7d8bee11ca
Closes #33 : Now NodeRenderers render attributes
2019-12-08 18:53:01 +09:00
Yusuke Inuzuka
a47a029d55
Fix typo
2019-12-06 18:23:52 +09:00
Cameron Moore
3dc5ebdb17
Fix golint issues
2019-11-29 13:31:28 -06:00
Yusuke Inuzuka
667a2920f2
Change attribute parsing strategy
2019-08-28 20:29:23 +09:00
Liang Ding
6f6884271d
✏️ Fix typos
2019-08-07 18:15:09 +08:00
yuin
883918a85c
Fix bugs found in fuzzing
2019-07-18 18:01:01 +09:00
yuin
05645dd3c4
Add String node
2019-05-30 16:07:04 +09:00
yuin
2ddc99baff
Add extension tests, Fix bugs in extensions
2019-05-16 19:46:36 +09:00
yuin
1963434c50
Fix some vet errors, Improve attributes on ATXHeadings
2019-05-16 12:37:49 +09:00
yuin
d9164d2556
Rename options names
2019-05-06 01:14:17 +09:00
yuin
28b28e34bb
Add Typographer extension
2019-05-06 00:53:22 +09:00
yuin
08a89f162a
Refactoring
2019-05-05 15:08:50 +09:00
yuin
785421acb4
Add WithAttribute
2019-05-05 13:42:39 +09:00
yuin
45222d6b03
Refactoring
2019-05-04 19:27:13 +09:00
yuin
d4d7acb277
Add a definition list extension, some refactoring
2019-05-02 22:22:05 +09:00
yuin
987f65f813
Performance optimizations
2019-05-01 20:32:41 +09:00
yuin
77aabc8f8e
Add WithUnsafe option
2019-04-27 15:30:16 +09:00
yuin
dd89404e04
first commit
2019-04-26 20:27:01 +09:00