Sha256: 01df3dd5e732c6d0e02ca95da75287eb4777c6a75fa2a8b13c1d333b07380c83

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

//
//  Signature.h
//  snowcrash
//
//  Created by Zdenek Nemec on 5/14/14.
//  Copyright (c) 2014 Apiary Inc. All rights reserved.
//

#ifndef SNOWCRASH_SIGNATURE_H
#define SNOWCRASH_SIGNATURE_H

#include "MarkdownNode.h"
#include "Section.h"

namespace snowcrash {

    /** 
     *  \brief Query whether a node has keyword-defined signature.
     *  \param node     A Markdown AST node to check.
     *  \return Type of the node if it has a recognized keyword signature, UndefinedType otherwise
     */
    extern SectionType SectionKeywordSignature(const mdp::MarkdownNodeIterator& node);

    /**
     *  \brief Recognize the type of section given the first line from a code block
     *  \param subject  The first line that needs to be recognized
     *  \return SectionType Type of the section if the line contains a keyword
     */
    extern SectionType RecognizeCodeBlockFirstLine(const mdp::ByteBuffer& subject);
}

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redsnow-0.2.1 ext/snowcrash/src/Signature.h
redsnow-0.2.0 ext/snowcrash/src/Signature.h