Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty data while parsing markdown #716

Open
vsumit89 opened this issue Nov 26, 2023 · 0 comments
Open

Empty data while parsing markdown #716

vsumit89 opened this issue Nov 26, 2023 · 0 comments

Comments

@vsumit89
Copy link

vsumit89 commented Nov 26, 2023

// some code above here

markdownData := `
# Programming and C Language Notes

### What is Programming?
- Computer programming is a means for us to communicate with computers.
- Similar to using languages like Hindi or English to communicate with each other; programming is our way of delivering instructions to the computer.

### What is C?
- C is a programming language.
- It is one of the oldest and finest programming languages.
- Developed by Dennis Ritchie at AT&T's Bell Labs, USA in 1972.

### Uses of C
- C language is utilized to program a wide variety of systems.
- Some common uses include:
		- Major parts of Windows, Linux, and other operating systems are written in C.
		- C is used for writing device drivers for devices such as tablets and printers.
		- It is employed in programming embedded systems where programs need to run fast in limited memory (e.g., microwaves, cameras).
		- C plays a role in developing games as it's important for a computer to react quickly to user input where latency is critical.
`

parser := blackfriday.New()

ast := parser.Parse([]byte(markdownData))

fmt.Println(ast)

// some code below

the print shows an empty result the blocks contain no data.
Is there anything I am doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant