carpentries / carpentries/pegboard

[transformation] alt text with both single and double quotes has double-escaped double quotes

Open
#112 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
6
Forks
5
PR merge metrics
No merged PRs in 30d

Description

``` r
tmp <- withr::local_tempfile()
writeLines(c("![\"data\" is a 3 by 3 numpy 'array'](../fig/python-zero-index.svg)"), tmp)
pegboard::Episode$new(tmp)$use_sandpaper()$show()
#> ---
#> ~
#> ---
#>
#> ![](fig/python-zero-index.svg){alt="\\"data\\" is a 3 by 3 numpy 'array'"}
```

Created on 2023-03-28 with [reprex v2.0.2](https://reprex.tidyverse.org)

Contributor guide

Open the contributing guide

Research direction

Start with the reproducible R example using pegboard::Episode$new(tmp)$use_sandpaper()$show(), then trace the transformation of the image alt text containing both quote types. Done means the transformed output preserves the intended single and double quotes without double-escaping the double quotes.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.