The post's content in HTML format.
167979
def content(self):
        """"""
        content_list = wrap_list(self._content_preprocessed)
        content_list.extend(self._content_stash)
        content_to_render = '\n'.join(content_list)
        return typogrify(self.content_renderer.render(content_to_render, self.format))
919933
def html(body, status=200, headers=None):
    '''
    
    '''
    return HTTPResponse(body, status=status, headers=headers,
                        content_type='text/html; charset=utf-8')
328992
private function content(Post $post, int $count): string
    {
        $out = '';

        if (!$this->posts->isContent()) {
            return $out;
        }

        $content = $post->content(
            $this->posts->args['excerpt']['more_text'],
            '',
            $this->posts->args['excerpt']['paginate']
        );

        if (!$content) {
            return $out;
        }

        $out .= '<div class="entry-content" itemprop="articleBody">';
        $out .= $content;
        $out .= '</div><!-- .entry-content -->';

        return $out;
    }
876726
protected String formatPosTag(String posTag, int position, int multiwordLength) {
    return tagFormat != null ? String.format(tagFormat, posTag) : posTag;
  }
443421
function post() {

		var slideElement = Reveal.getCurrentSlide(),
			notesElement = slideElement.querySelector( 'aside.notes' );

		var messageData = {
			notes: '',
			markdown: false,
			socketId: socketId,
			state: Reveal.getState()
		};

		// Look for notes defined in a slide attribute
		if( slideElement.hasAttribute( 'data-notes' ) ) {
			messageData.notes = slideElement.getAttribute( 'data-notes' );
		}

		// Look for notes defined in an aside element
		if( notesElement ) {
			messageData.notes = notesElement.innerHTML;
			messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
		}

		socket.emit( 'statechanged', messageData );

	}
853114
function parseFrontMatter( file, post, options ) {

	var _formatDate = options && typeof options.formatDate === 'function' ?
				options.formatDate : formatDate,
			content = frontMatter( file.contents.toString() ),
			prop = '';

	if ( content.attributes ) {

		post.category = content.attributes.category || '';
		post.created = content.attributes.created ? _formatDate( content.attributes.created ) : '';
		post.title = content.attributes.title || '';
		post.updated = content.attributes.updated ? _formatDate( content.attributes.updated ) : '';

		if ( content.attributes.excerpt ) {

			post.excerpt = markdown( content.attributes.excerpt );
		}

		post.content = content.body ? markdown( content.body ) : '';

		if ( post.content && highlightSyntax ) {

			highlightPostSyntax( post );
		}

		// Look for custom front-matter
		for ( prop in content.attributes ) {

			if ( content.attributes.hasOwnProperty( prop ) && isCustomFrontMatter( prop ) ) {

				post[ prop ] = content.attributes[ prop ];
			}
		}
	}
}
956248
def prepare(self):

        self.body_html = markdown(
            codecs.open(self.abspath, 'r').read(),
            extras=['fenced-code-blocks', 'hilite', 'tables', 'metadata'])

        self.header = self.body_html.metadata
        """"""
        if 'tags' in self.header:  # pages can lack tags
            self.header['tags'] = [t.strip().lower() for t in
                                   self.header['tags'].split(',')]

        else:
            self.header['tags'] = ("",)

        self.date = self.header.get('published', datetime.datetime.now())

        if isinstance(self.date, str):
            self.date = datetime.datetime.strptime(self.date, "%Y-%m-%d")

        for k, v in self.header.items():
            try:
                setattr(self, k, v)
            except AttributeError:
                pass

        if self.id:
            return

        rec = {'filename': self.path,
               'mtime': int(os.path.getmtime(self.abspath))}

        if self.header['kind'] == 'writing':
            _id = Entry.db.posts.insert(rec)

        elif self.header['kind'] == 'page':
            _id = Entry.db.pages.insert(rec)

        self.id = _id
295816
def obtain_the_content(check = nil)
    	post = obtain_record(check)
    	render :inline => prep_content(post).html_safe if !post.blank?
    end
1322017
function html(opts) {
  opts = opts || {}
  var parent = opts.target =  createElement();
  parent.innerHTML = opts.content;
  Splitting(opts)
  return parent.outerHTML
}
1243553
def postprocess_html(html, metadata):
  """"""
  if metadata.get('build_lists') and metadata['build_lists'] == 'true':
    html = html.replace('<ul>', '<ul class="build">')
    html = html.replace('<ol>', '<ol class="build">')
  return html
924228
function Html()
    {
        $text = $this->html;
        
        $pos = strpos($text, self::$placeholder);
        $phLength = strlen(self::$placeholder);
        while ($pos !== false && $this->currentChild)
        {
            $replacement = $this->RenderCurrentChild();
            $text = substr($text, 0, $pos) . $replacement . substr($text, $pos + $phLength);
            
            $this->currentChild = $this->tree->NextOf($this->currentChild);
            $pos = strpos($text, self::$placeholder, $pos  + strlen($replacement));
        }
        return $text;
    }
528745
function highlightPostSyntax( post ) {

	var codeTags = [],
			i = 0,
			len = 0;

	doc = doc || createDom( post.content );
	
	codeTags = doc.querySelectorAll('pre code');

	len = codeTags.length;

	for ( ; i < len; i++ ) {

		// Replace class names beginning with "lang-" with "language-" for Highlight.js
		codeTags[i].className = codeTags[i].className.replace('lang-', 'language-');

		hljs.highlightBlock( codeTags[i] );
	}

	post.content = doc.body.innerHTML;
}
1152064
private function postData()
    {
        $data = array_filter($this->post, function ($v) {
            if (is_array($v)) {
                return array_filter($v, 'strlen');
            }

            return strlen($v);
        });

        return json_encode($data);
    }
385669
def content_written(generator, content):
    
    url = "%s/%s" % (generator.settings.get('SITEURL', 'http://localhost:8000'), content.url)
    make_posts(generator, content.metadata, url)
1281207
function htmlTableOfContents () {
    var toc = document.getElementById('toc');
    var headings;

    if( navigator.userAgent.indexOf("MSIE") != -1 ) {
       headings = document.getElementsByTagName('h2');
    } else {
       headings = document.querySelectorAll("h2");
    }

    var list = document.createElement('ul');
    var heading = document.createElement('h2');

    for(var i = 0, n = headings.length; i < n; i ++) {
        var listItem = document.createElement('li');
        var link = document.createElement('a');
        link.href = '#' + headings[i].id;
        link.innerText = headings[i].innerText.replace(' #','');
        listItem.appendChild(link);
        list.appendChild(listItem);
    }

    heading.id = "contents";
    heading.innerText = 'Contents';
    toc.appendChild(heading);
    toc.appendChild(list);
}
76450
function(){
                res.type('.html');
                res.send(_render(tpl, css, {
                    code: httpStatusCode,
                    title: pageData.title,
                    message: pageData.message,
                    footer: opt.footer
                }))
            }
624866
function createHtmlDocument (message) {
  var body = escapeHtml(message)
    .replace(NEWLINE_REGEXP, '<br>')
    .replace(DOUBLE_SPACE_REGEXP, ' &nbsp;')

  return '<!DOCTYPE html>\n' +
    '<html lang="en">\n' +
    '<head>\n' +
    '<meta charset="utf-8">\n' +
    '<title>Error</title>\n' +
    '</head>\n' +
    '<body>\n' +
    '<pre>' + body + '</pre>\n' +
    '</body>\n' +
    '</html>\n'
}