joelnitta / dovetail

Other
6 stars 1 forks source link

Content in fenced divs shows up verbatim in PO file #17

Closed joelnitta closed 8 months ago

joelnitta commented 1 year ago

For example, original text like this:

::::::::::::::::::::::::::::::::::::: challenge 

## Challenge 1: Can you do it?

What is the output of this command?

```r
paste("This", "new", "lesson", "looks", "good")

:::::::::::::::::::::::: solution

Output

[1] "This new lesson looks good"

:::::::::::::::::::::::::::::::::

Challenge 2: how do you nest solutions within challenge blocks?

:::::::::::::::::::::::: solution

You can add a line with at least three colons and a solution tag.

:::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::


Shows up like this:

. type: Fenced div block (challenge )

: /babelwhale/9fe70bf4bfec907b9b9fab7084eb1aeb/Users/joelnitta/repos/dovetail/inst/extdata/test.md:1

, no-wrap

msgid "" "\n" "## Challenge 1: Can you do it?\n" "\n" "What is the output of this command?\n" "\n" "r\n" "paste(\"This\", \"new\", \"lesson\", \"looks\", \"good\")\n" "\n" "\n" msgstr ""

. type: Fenced div block (challenge |solution )

: /babelwhale/9fe70bf4bfec907b9b9fab7084eb1aeb/Users/joelnitta/repos/dovetail/inst/extdata/test.md:1

, no-wrap

msgid "" "\n" "## Output\n" " \n" "output\n" "[1] \"This new lesson looks good\"\n" "\n" "\n" msgstr ""

. type: Fenced div block (challenge |solution )

: /babelwhale/9fe70bf4bfec907b9b9fab7084eb1aeb/Users/joelnitta/repos/dovetail/inst/extdata/test.md:1

, no-wrap

msgid "" "\n" "## Challenge 2: how do you nest solutions within challenge blocks?\n" "\n" msgstr ""

. type: Fenced div block (challenge |solution )

: /babelwhale/9fe70bf4bfec907b9b9fab7084eb1aeb/Users/joelnitta/repos/dovetail/inst/extdata/test.md:1

, no-wrap

msgid "" "\n" "You can add a line with at least three colons and a solution tag.\n" "\n" msgstr ""

. type: Fenced div block (challenge )

: /babelwhale/9fe70bf4bfec907b9b9fab7084eb1aeb/Users/joelnitta/repos/dovetail/inst/extdata/test.md:1

, no-wrap

msgid "\n" msgstr ""



There are too many `\n`s, and too much markdown formatting (like headers, `##`) in the strings to be translated. Translators should not have to see those.

This likely depends on https://github.com/mquinson/po4a/issues/381 getting properly fixed.
joelnitta commented 8 months ago

No longer using po4a