Wrap text datafile/pre/@source in CDATA#2615
Wrap text datafile/pre/@source in CDATA#2615gigamonkey wants to merge 1 commit intoPreTeXtBook:masterfrom
Conversation
|
Initially posed on wrong PR. @rbeezer's post on -dev and this crossed in flight. Our conclusion is that Usually It also is potentially confusing because you can use Anywhere else you wanted to include code from a file (like in the body of a So The recommended authoring pattern for putting the contents into a separate file would be: |
If you mean the |
|
Lol. I forgot Markdown also lets you use arbitrary HTML. What I said, some of which got eaten by Markdown:
|
|
@rbeezer I believe this could be closed. (Looking out for your open PR count!) Possibly we need an issue to deprecate |
Thank-you! (That's motivating!) Can you make an issue for the deprecation? I'm not up-to-speed on everything that is going on here. Thanks. |
This seems like the Right Thing™ insofar as a data file should not need to be mangled to be legal XML text. However this change could possibly break existing books that have run into the problem this patch is fixing by adding escaping or CDATA into their datafiles.