Skip to content
  • Categories
  • Recent
  • Popular
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB-ActivityPub Bridge Test Instance

  1. Home
  2. Categories
  3. Playground
  4. Strikethrough text on PieFed?

Strikethrough text on PieFed?

Scheduled Pinned Locked Moved Playground
strikethroughcodeblock
11 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • klu9@piefed.socialK This user is from outside of this forum
    klu9@piefed.socialK This user is from outside of this forum
    klu9@piefed.social
    wrote last edited by
    #1

    Strikethrough isn't mentioned on this page
    https://piefed.social/community/fediverse/wiki/piefed-markdown

    But I'll try a few things here anyway.

    Fourth of July weekend

    Looks like the first thing I tried works! Double tildes before and after the text.

    ~~Fourth of July weekend~~ 
    

    Putting that in a code block still strikes through the text, though, instead of showing the tildes. (At least, it does in Preview.)

    klu9@piefed.socialK wjs018@piefed.socialW 2 Replies Last reply
    0
    • klu9@piefed.socialK klu9@piefed.social

      Strikethrough isn't mentioned on this page
      https://piefed.social/community/fediverse/wiki/piefed-markdown

      But I'll try a few things here anyway.

      Fourth of July weekend

      Looks like the first thing I tried works! Double tildes before and after the text.

      ~~Fourth of July weekend~~ 
      

      Putting that in a code block still strikes through the text, though, instead of showing the tildes. (At least, it does in Preview.)

      klu9@piefed.socialK This user is from outside of this forum
      klu9@piefed.socialK This user is from outside of this forum
      klu9@piefed.social
      wrote last edited by
      #2

      What about single line code?

      ~~Fourth of July weekend~~

      klu9@piefed.socialK 1 Reply Last reply
      0
      • klu9@piefed.socialK klu9@piefed.social

        What about single line code?

        ~~Fourth of July weekend~~

        klu9@piefed.socialK This user is from outside of this forum
        klu9@piefed.socialK This user is from outside of this forum
        klu9@piefed.social
        wrote last edited by
        #3

        Strikes through instead of showing the tildes.

        1 Reply Last reply
        0
        • klu9@piefed.socialK klu9@piefed.social

          Strikethrough isn't mentioned on this page
          https://piefed.social/community/fediverse/wiki/piefed-markdown

          But I'll try a few things here anyway.

          Fourth of July weekend

          Looks like the first thing I tried works! Double tildes before and after the text.

          ~~Fourth of July weekend~~ 
          

          Putting that in a code block still strikes through the text, though, instead of showing the tildes. (At least, it does in Preview.)

          wjs018@piefed.socialW This user is from outside of this forum
          wjs018@piefed.socialW This user is from outside of this forum
          wjs018@piefed.social
          wrote last edited by
          #4

          Ugh, more diving into the markdown_to_html function is in my future. Formatting like that shouldn't happen inside code regions.

          klu9@piefed.socialK wjs018@piefed.socialW 2 Replies Last reply
          1
          • wjs018@piefed.socialW wjs018@piefed.social

            Ugh, more diving into the markdown_to_html function is in my future. Formatting like that shouldn't happen inside code regions.

            klu9@piefed.socialK This user is from outside of this forum
            klu9@piefed.socialK This user is from outside of this forum
            klu9@piefed.social
            wrote last edited by
            #5

            Sorry, I didn't mean to make you 'ugh' 🙂

            wjs018@piefed.socialW 1 Reply Last reply
            0
            • klu9@piefed.socialK klu9@piefed.social

              Sorry, I didn't mean to make you 'ugh' 🙂

              wjs018@piefed.socialW This user is from outside of this forum
              wjs018@piefed.socialW This user is from outside of this forum
              wjs018@piefed.social
              wrote last edited by
              #6

              No worries! It's actually been super helpful to have people like you testing and reporting all these weird cases. I think the root cause of a lot of these markdown -> html issues is that the underlying python library that piefed uses has a weird plugin system to enable different markdown features and they sometimes play weird with each other. One of those extras is the strikethrough syntax, and it seems as though it doesn't respect code regions (another extra). So, I just need to do some pre-processing of the text.

              Basically, this is going to be a similar fix to the double-bold problem from a little ways back. I should have a fix in the next day or two.

              klu9@piefed.socialK 1 Reply Last reply
              1
              • wjs018@piefed.socialW wjs018@piefed.social

                No worries! It's actually been super helpful to have people like you testing and reporting all these weird cases. I think the root cause of a lot of these markdown -> html issues is that the underlying python library that piefed uses has a weird plugin system to enable different markdown features and they sometimes play weird with each other. One of those extras is the strikethrough syntax, and it seems as though it doesn't respect code regions (another extra). So, I just need to do some pre-processing of the text.

                Basically, this is going to be a similar fix to the double-bold problem from a little ways back. I should have a fix in the next day or two.

                klu9@piefed.socialK This user is from outside of this forum
                klu9@piefed.socialK This user is from outside of this forum
                klu9@piefed.social
                wrote last edited by
                #7

                🙂

                IIRC, there's another code vs formatting conflict: Spoiler inside code block.

                :::spoiler SPOILER!
                Some spoiler text
                :::
                
                wjs018@piefed.socialW 1 Reply Last reply
                0
                • klu9@piefed.socialK klu9@piefed.social

                  🙂

                  IIRC, there's another code vs formatting conflict: Spoiler inside code block.

                  :::spoiler SPOILER!
                  Some spoiler text
                  :::
                  
                  wjs018@piefed.socialW This user is from outside of this forum
                  wjs018@piefed.socialW This user is from outside of this forum
                  wjs018@piefed.social
                  wrote last edited by
                  #8

                  Yeah, I am going to try to put something together that basically prevents any markdown parsing inside code sections. The code portions should be unformatted in any way.

                  1 Reply Last reply
                  1
                  • wjs018@piefed.socialW wjs018@piefed.social

                    Ugh, more diving into the markdown_to_html function is in my future. Formatting like that shouldn't happen inside code regions.

                    wjs018@piefed.socialW This user is from outside of this forum
                    wjs018@piefed.socialW This user is from outside of this forum
                    wjs018@piefed.social
                    wrote last edited by
                    #9

                    ~~this shouldn't have a strike through it~~

                    ~~neither should this~~
                    
                    ::: spoiler This shouldn't
                    be a spoiler.
                    :::
                    
                    wjs018@piefed.socialW 1 Reply Last reply
                    1
                    • wjs018@piefed.socialW wjs018@piefed.social

                      ~~this shouldn't have a strike through it~~

                      ~~neither should this~~
                      
                      ::: spoiler This shouldn't
                      be a spoiler.
                      :::
                      
                      wjs018@piefed.socialW This user is from outside of this forum
                      wjs018@piefed.socialW This user is from outside of this forum
                      wjs018@piefed.social
                      wrote last edited by
                      #10

                      @klu9@piefed.social

                      See above, this is fixed now.

                      klu9@piefed.socialK 1 Reply Last reply
                      1
                      • wjs018@piefed.socialW wjs018@piefed.social

                        @klu9@piefed.social

                        See above, this is fixed now.

                        klu9@piefed.socialK This user is from outside of this forum
                        klu9@piefed.socialK This user is from outside of this forum
                        klu9@piefed.social
                        wrote last edited by
                        #11
                        ~~Fourth of July weekend~~ 
                        

                        :::spoiler Spoiler
                        Spoiler
                        :::
                        

                        Thanks!

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Popular