public class CodeFencePipe extends java.lang.Object implements Pipe
hello
world
Is transformed to
```
hello
world
```
You can specify a language tag with the pipe argument (e.g. fenced:js).
In this case, the output will be:
```js
hello
world
```
Using the CodeFencePipe(String) constructor, you can specify a default language tag that will be used when
none is specified via the argument.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
CodeFencePipe() |
CodeFencePipe(java.lang.String defaultLanguage) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(java.lang.String content,
java.lang.String arg)
Transforms the input text of the code fragment to the output format specified by this pipe.
|
public static final java.lang.String NAME
public CodeFencePipe()
public CodeFencePipe(java.lang.String defaultLanguage)
public java.lang.String apply(java.lang.String content,
java.lang.String arg)
Pipe