Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cache: cargo
sudo: required
script: script/cibuild
rust:
- 1.27.0
- nightly
- beta
- stable
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/kivikakk/comrak.svg?branch=master)](https://travis-ci.org/kivikakk/comrak) ![Spec
[![Build Status](https://travis-ci.com/kivikakk/comrak.svg?branch=master)](https://travis-ci.com/kivikakk/comrak) ![Spec
Status: 671/671](https://img.shields.io/badge/specs-671%2F671-brightgreen.svg) [![crates.io
version](https://img.shields.io/crates/v/comrak.svg)](https://crates.io/crates/comrak)
[![docs.rs](https://docs.rs/comrak/badge.svg)](https://docs.rs/comrak)
Expand Down
7 changes: 1 addition & 6 deletions src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub struct Anchorizer(HashSet<String>);
impl Anchorizer {
/// Construct a new anchorizer.
pub fn new() -> Self {
Self(HashSet::new())
Anchorizer(HashSet::new())
}

/// Returns a String that has been converted into an anchor using the
Expand Down Expand Up @@ -448,11 +448,6 @@ impl<'o> HtmlFormatter<'o> {
self.output.write_all(b"</dd>\n")?;
},
NodeValue::Heading(ref nch) => {
lazy_static! {
static ref REJECTED_CHARS: Regex =
Regex::new(r"[^\p{L}\p{M}\p{N}\p{Pc} -]").unwrap();
}

if entering {
self.cr()?;
write!(self.output, "<h{}>", nch.level)?;
Expand Down
2 changes: 1 addition & 1 deletion src/parser/inlines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use unicode_categories::UnicodeCategories;
const MAXBACKTICKS: usize = 80;
const MAX_LINK_LABEL_LENGTH: usize = 1000;

pub struct Subject<'a: 'd, 'r, 'o, 'd, 'i, 'c, 'subj> {
pub struct Subject<'a: 'd, 'r, 'o, 'd, 'i, 'c: 'subj, 'subj> {
pub arena: &'a Arena<AstNode<'a>>,
options: &'o ComrakOptions,
pub input: &'i [u8],
Expand Down