flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

Is there a simple way to get title, exerpt , tags etc of a markdown file that we use in github for github blog. Thanks in advance

Open slowbreathing opened this issue 6 years ago • 2 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I am trying to do ...

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

slowbreathing avatar Aug 16 '19 04:08 slowbreathing

s there a simple way to get title, excerpt , tags etc of a markdown file that we use in github for github blog. Thanks in advance

slowbreathing avatar Aug 16 '19 04:08 slowbreathing

@slowbreathing, you parse the source file to get the AST using parser then create a visitor for your nodes of interest and visit the document which will descend into all nodes.

You can collect the information of interest as the nodes are visited.

See VisitorSample.java

vsch avatar Aug 17 '19 19:08 vsch