remix-nlux
Version:
Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.
43 lines (34 loc) • 700 B
text/typescript
/**
* TextRenderer
* returns only the textual part of the token
*/
export class _TextRenderer {
br() {
return '';
}
codespan(text: string) {
return text;
}
del(text: string) {
return text;
}
em(text: string) {
return text;
}
html(text: string) {
return text;
}
image(href: string, title: string | null, text: string) {
return '' + text;
}
link(href: string, title: string | null | undefined, text: string) {
return '' + text;
}
// no need for block level renderers
strong(text: string) {
return text;
}
text(text: string) {
return text;
}
}