// Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ // to be compatible with app/assets/javascripts/app/lib/app_post/i18n.coffee:267 export const markup = (source: string): string => { return source .replace(/\|\|(.+?)\|\|/gm, '$1') .replace(/\|(.+?)\|/gm, '$1') .replace(/_(.+?)_/gm, '$1') .replace(/\/\/(.+?)\/\//gm, '$1') .replace(/§(.+?)§/gm, '$1') .replace(/\[(.+?)\]\((.+?)\)/gm, '$1') }