Chris Bednarski
e367755421
Added test for BaseBlock.Text retrieval
2024-07-25 23:40:45 -07:00
Chris Bednarski
e44645afbb
Implement Text interface for BaseBlock
...
This implementation was missing, making it impossible to retrieve Text
from block types, such as CodeBlock and FencedCodeBlock, via the ast
interface.
2024-07-25 22:37:54 -07:00
yuin
9b02182dd0
Apply linters
2023-08-15 18:40:41 +09:00
yuin
1dd67d5750
Add CJK extension
2022-09-25 03:31:14 +09:00
yuin
b7b0919dfe
Add AddMeta
2022-02-12 19:01:55 +09:00
yuin
5588d92a56
Support CommonMark 0.30
2021-07-05 00:12:46 +09:00
Yusuke Inuzuka
4e0c22a20e
Merge pull request #170 from moorereason/deadcode
...
Remove unused global code
2020-12-26 18:01:11 +09:00
yuin
036c8738df
Fixes #164 , Fixes #167
2020-12-26 17:56:42 +09:00
Cameron Moore
af880df797
Remove unused global code
2020-12-17 10:26:46 -06:00
yuin
9e0189df27
Closes #161
...
- Implement footnote configurations defined in original markdown extra.
- Add OwnerDocument() method to ast.Node
- Add Meta() method to *ast.Document
2020-12-13 23:11:07 +09:00
pzl
8bdab9449a
documentation typo fixes
2020-02-14 22:03:49 -05:00
Joe Schafer
3c340e9970
Fix ast.Walk to respect WalkStop
...
Fixes #97
2020-02-07 01:42:40 -08:00
xml
4fc27178e4
fix bug: if do c.SetNextSibling(nil) and c = c.NextSibling(). After remove the first child the var c is always nil.the next child will not be set nil
2020-01-09 17:33:21 +08:00
yuin
171dbc66a8
Fixes #50
2019-12-05 13:39:55 +09:00
Cameron Moore
748be0c096
Fix shadow declarations
2019-11-29 13:20:34 -06:00
Yusuke Inuzuka
667a2920f2
Change attribute parsing strategy
2019-08-28 20:29:23 +09:00
Abhinav Gupta
45376ddb05
ast: Specify types for iota-based constants
...
Including the type of a constant improves discoverability because the
constant is listed next to the type in the godocs.
Before:
```
$ go doc -all . WalkStatus
type WalkStatus int
WalkStatus represents a current status of the Walk function.
```
After:
```shell
$ go doc -all . WalkStatus
type WalkStatus int
WalkStatus represents a current status of the Walk function.
const (
// WalkStop indicates no more walking needed.
WalkStop WalkStatus = iota + 1
// WalkSkipChildren indicates that Walk wont walk on children of current
// node.
WalkSkipChildren
// WalkContinue indicates that Walk can continue to walk.
WalkContinue
)
```
This commit the `iota`-based constants in the AST package to follow
this.
2019-08-24 12:17:57 -07:00
Liang Ding
6f6884271d
✏️ Fix typos
2019-08-07 18:15:09 +08:00
Liang Ding
d29104889a
✏️ Fix some tyops in doc comments
2019-08-07 18:08:43 +08:00
yuin
19b18e85fc
Fix bug found in fuzzing
2019-07-24 20:16:54 +09: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
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
3bf70b9428
Add AttributeString method
2019-05-04 22:29:53 +09:00
yuin
bdde5e8472
Rename option names
2019-05-04 22:25:41 +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
dd89404e04
first commit
2019-04-26 20:27:01 +09:00