Markdown filter : Allow adding certain tags that needs no localization

Issue #726 resolved
Deepak created an issue

In some cases, we need to flag certain sections of content within an article to be English only. In AEM, A3 Components have a "Do Not Localize" option. For sections of text that should not be localized, use the [!DONOTLOCALIZE] extension and use block quotes ( > ) to mark the entire English-only section.

Example:

>[!DONOTLOCALIZE]
>## Exporting widgets
> This section will not be localized.
> 1. Do the first step.  
>    > [!NOTE]
>    > Remember to do the first step properly.
> 1. Do the second step.

The non-translatable tag could be user-specific and hence should be configurable.

Comments (3)

  1. Kuro Kurosaka

    If I interpret the response in the pull request 245 correctly, how this marker doesn't need to start with [! and end with ]. Correct? If so, I'd suggest that new config parameter be any regular expression, and in your case, would look like:

    suppressBlockQuoteTranslationMarker=\[!DONOTLOCALIZE\]
    

    I wonder if we'd like to have a similar feature for code blocks too.

    I wonder why this issue's priority is critical. This is a new feature and nothing is breaking. I feel critical is saved for the issues that break major existing features.

    p.s. I'll be on vacation and my response will be slow.

  2. Log in to comment