Summary: specifying summary start and end manually

Is there a way to designate manually the start of a content summary?
Just like how <!--more--> is used to designate the end of content summary for markdown.
Ideally I would like to do something like this:

    # Section
    Crazy HTML markup here or maybe a shortcode....
     summary content

The problem with existing method is when using a hook for rendering markdown headlines any HTML injected to style a header ends up leaking into the page summary variable, which I don’t want.

No, this is not possible. But you can always use the summary option in the frontmatter. Just leave the <!-- more --> out of the text.

Thank you, that might work I guess. Although I’m not sure how to accommodate multi-line text in the front matter. So, for now I’ve resorted to manually parsing the summary from Page.Content using regular expressions( findRE/replaceRE).

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.