summaryrefslogtreecommitdiff
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index 6a5370f..88b1281 100644
--- a/src/node.c
+++ b/src/node.c
@@ -475,6 +475,14 @@ cmark_node_get_end_line(cmark_node *node) {
return node->end_line;
}
+int
+cmark_node_get_end_column(cmark_node *node) {
+ if (node == NULL) {
+ return 0;
+ }
+ return node->end_column;
+}
+
static inline bool
S_is_block(cmark_node *node) {
if (node == NULL) {