@Test public void process() { assertContent("<p>one</p><hr/>", "one\n\n------\n"); assertContent("<p>one</p><hr/>", "one\n\n---\n"); assertContent("<p>one</p><hr/>", "one\n\n- - -\n"); assertContent("<p>one</p><hr/>", "one\n\n ** *****\n"); }
@Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { builder.setLocator(lineSequence.getCurrentLine().toLocator()); builder.horizontalRule(); lineSequence.advance(); }
HorizontalRuleBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { builder.setLocator(lineSequence.getCurrentLine().toLocator()); builder.horizontalRule(); lineSequence.advance(); } }
HorizontalRuleBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { builder.setLocator(lineSequence.getCurrentLine().toLocator()); builder.horizontalRule(); lineSequence.advance(); }  }
HorizontalRuleBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { builder.setLocator(lineSequence.getCurrentLine().toLocator()); builder.horizontalRule(); lineSequence.advance(); }  @Override void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence); @Override boolean canStart(LineSequence lineSequence); }
HorizontalRuleBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { builder.setLocator(lineSequence.getCurrentLine().toLocator()); builder.horizontalRule(); lineSequence.advance(); }  @Override void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence); @Override boolean canStart(LineSequence lineSequence);  }