Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

doc: tutorial stringraw.cue renders oddly #49

Closed
ghchinoy opened this issue May 23, 2019 · 2 comments
Closed

doc: tutorial stringraw.cue renders oddly #49

ghchinoy opened this issue May 23, 2019 · 2 comments

Comments

@ghchinoy
Copy link

ghchinoy commented May 23, 2019

https://github.com/cuelang/cue/blob/master/doc/tutorial/basics/stringraw.md

Note the markdown uses "```json" causing the red rendering

ie this...

$ cue eval stringraw.cue

{
    msg1: "The sequence \"\\U0001F604\" renders as 😄."
    msg2: """
        A regular expression can conveniently be written as:
        
            #\"\\d{3}\"#
        
        This construct works for bytes, strings and their
        multi-line variants.
        """
}

should be ...

$ cue eval stringraw.cue

{
    msg1: "the sequence \"\\U0001F604\" renders as 😄."
    msg2: """
        A regular expression can conveniently be written as:
        
            #\"\\d{3}\"#
        
        This construct works for bytes, strings and their
        multi-line variants.
        """
}

Similarly, https://github.com/cuelang/cue/blob/master/doc/tutorial/basics/bytes.md exhibits similar (missing quotes around cue export rendered json due to missing quotes in md)

ref also #48

@mpvl
Copy link
Contributor

mpvl commented Jun 3, 2019

Fixed. See Issue #48.

@cueckoo
Copy link

cueckoo commented Jul 3, 2021

This issue has been migrated to cue-lang/cue#49.

For more details about CUE's migration to a new home, please see cue-lang/cue#1078.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants