Get String Values From Blocks #694

Closed
opened 2026-01-29 14:43:07 +00:00 by claunia · 2 comments
Owner

Originally created by @JustinFay01 on GitHub (Aug 16, 2024).

I have a use case where I need to take out the specific blocks and get their string values. However, I am finding great difficulty in doing so. Is there an easy way to get the actual values from any given block. This is what I have been experimenting with so far:

image

Obviously, it is very poor in covering every possible case. Does anyone have a solution or can point me in the right direction?

Originally created by @JustinFay01 on GitHub (Aug 16, 2024). I have a use case where I need to take out the specific blocks and get their string values. However, I am finding great difficulty in doing so. Is there an easy way to get the actual values from any given block. This is what I have been experimenting with so far: ![image](https://github.com/user-attachments/assets/83ee80f3-4f08-41d2-8e10-9f5c9014e0f5) Obviously, it is very poor in covering every possible case. Does anyone have a solution or can point me in the right direction?
Author
Owner

@MihaZupan commented on GitHub (Aug 16, 2024):

See https://github.com/xoofx/markdig/issues/766#issuecomment-1917558093

@MihaZupan commented on GitHub (Aug 16, 2024): See https://github.com/xoofx/markdig/issues/766#issuecomment-1917558093
Author
Owner

@JustinFay01 commented on GitHub (Aug 28, 2024):

I solved it by adding this extension:

image

@JustinFay01 commented on GitHub (Aug 28, 2024): I solved it by adding this extension: ![image](https://github.com/user-attachments/assets/8d27bfa6-bf1d-42a6-95d0-7139cb07c2f9)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#694