You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO hiding for now, let's fix it after our release
// @TODO include things from a new module that we have.// we need to pass all constants somewhere, but not to the replaceWrapperimport{replaceMarkdown}from'../../../../domain/replace-markdown/html/replace-md';classReplace{constructor(){this.replaceMDBinded=()=>{};// I think this version isnt working well// Replacer.replaceMDBindedPreviewText = replaceMarkdownPreviewText.bind(state);// this.replaceMDBindedPreviewText = () => {};this.previewText=()=>this.replaceMDBinded('previewText');this.strong=()=>this.replaceMDBinded('strong');this.em=()=>this.replaceMDBinded('italic');// TODO finish this casethis.italicAsterix=()=>this.replaceMDBinded('italic_asterix');// TODO working not ideally, because we have headings & subtitles,// so it's confusing a little bitthis.header=()=>this.replaceMDBinded('header');this.subtitle=()=>this.replaceMDBinded('header');this.title=()=>this.replaceMDBinded('header');this.image=()=>this.replaceMDBinded('image');this.link=()=>this.replaceMDBinded('link');this.del=()=>this.replaceMDBinded('del');this.q=()=>this.replaceMDBinded('q');this.code=()=>this.replaceMDBinded('code');this.ul=()=>this.replaceMDBinded('ulList');this.ol=()=>this.replaceMDBinded('olList');this.blockquote=()=>this.replaceMDBinded('blockquote');this.hr=()=>this.replaceMDBinded('hr');this.paragraph=()=>this.replaceMDBinded('paragraph');this.br=()=>this.replaceMDBinded('br');this.sponsorship=()=>this.replaceMDBinded('sponsorship');// here we have a different namethis.memes=()=>this.replaceMDBinded('memes');this.separator=()=>this.replaceMDBinded('separator');// TODO hiding for now, let's fix it after our release// this.emptyUl = () => this.replaceMDBinded('REGEXP_EMPTY_UL');// this.emptyOl = () => this.replaceMDBinded('REGEXP_EMPTY_OL');// this.comments = () => this.replaceMDBinded('');// this.emptyBlockquote = () =>// this.replaceMDBinded('REGEXP_EMPTY_BLOCKQUOTE');}configure(state){this.replaceMDBinded=replaceMarkdown.bind(state);// TODO crashed when here in FULL mode, needs to be fixedthis.previewText();// Replacer.comments();this.typography();this.template();this.miscellaneous();}template(){this.header();}// TODO I think we need to upgrade this class,// in order to match it with our updated logic of organizing components// test this partmiscellaneous(){// this line is generating an error// TODO fix this// this.emptyBlockquote();this.br();if(!process.env.PARSE==='noAdv'||process.env.PARSE==='full'){this.sponsorship();}this.memes();this.separator();}typography(){this.strong();this.em();this.italicAsterix();this.subtitle();this.title();// this.header();this.image();this.link();this.del();this.q();this.code();this.ul();this.ol();this.blockquote();this.hr();this.paragraph();// TODO fix this// this.emptyUl();// this.emptyOl();}// runConfigure () {// }}exportdefaultnewReplace();
The text was updated successfully, but these errors were encountered:
this.emptyUl = () => this.replaceMDBinded('REGEXP_EMPTY_UL');
this.emptyOl = () => this.replaceMDBinded('REGEXP_EMPTY_OL');
this.comments = () => this.replaceMDBinded('');
this.emptyBlockquote = () =>
this.replaceMDBinded('REGEXP_EMPTY_BLOCKQUOTE');
markdown-to-email/src/templates/RecipesTemplate/html/components/Replace.class.js
Line 40 in 31afaad
The text was updated successfully, but these errors were encountered: