PoiScript / orgize

A Rust library for parsing org-mode files.
https://poiscript.github.io/orgize/
MIT License
277 stars 34 forks source link

How do you get content from a section? #38

Closed ShadowMitia closed 3 years ago

ShadowMitia commented 3 years ago

Hi,

I might've missed something obvious here :grin:

So there's an easy way to grab headlines, but I couldn't find a way to grab the content that appears in that headline. There's even a set_section_content but no get_* functions.

There's also a children method, but only gives me headlines?

The only way I can see how to do this, is with iter, which goes through the entire file, and then I need to filter it out somehow. Which sounds a bit cumbersome to do.

I was wondering if there was an easier way to grab the section content for a specific headline?

Thanks in advance!