Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
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
Code Project
  1. Home
  2. Product Lifecycle
  3. Free Tools
  4. Markdown alternative with classes

Markdown alternative with classes

Scheduled Pinned Locked Moved Free Tools
htmlc++javascriptcomsysadmin
9 Posts 6 Posters 0 Views 1 Watching
  • 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.
  • E Offline
    E Offline
    Ecstatic Coder
    wrote on last edited by
    #1

    Markdown is really a great alternative to HTML, and I've used it for a while, but unfortunately it had some quirks and limitations that REALLY annoyed me, like the inability to apply styling classes where needed. If some of you are in the same case, I've released an alternative lightweight markup language (https://github.com/senselogic/PENDOWN) especially designed to fix those problems. It can be quickly converted to HTML in the navigator through a JS script, or offline by a server-side command line tool. For those interested, here are a few sample tags :

    ! Heading 1
    !! Heading 2
    !!! Heading 3
    !!!! Heading 4
    !!!!! Heading 5
    !!!!!! Heading 6

    **bold**
    %%italics%%
    ^^superscript^^
    ,,subscript,,
    strikethrough
    __underlined__
    ##highlighted##

    {{ span }}
    {{{ div }}}

    box

    +++ frame +++

    quote >>>
    ::: pre :::

    :::^cpp\
    // Colorized source code

    #include using namespace std;

    int main()
    {
    cout << "Hello world!";

    return 0;
    

    }
    :::

    [[[
    (( Monday | Tuesday | Wednesday ))
    (( 1 | 2 | 3 ))
    (( 1 | 2 | 3 ))
    (( 1 | 2 | 3 ))
    ]]]

    * List
    * List
    * Sub-list
    * Sub-list
    # Numbered sub-list
    # Numbered sub-list
    # Numbered sub-list
    # Numbered sub-list
    # Numbered
    sub-list

    @@http://www.github.com A link to Github@@
    @@http://www.github.com [[image.jpg:20]]@@
    @@http://www.github.com@@

    [[image.jpg]]
    [[image.jpg:20]]
    [[image.jpg:20vw,20%]]

    After a Pendown tag, you can specify one or several lists of classes and properties :

    {{^big,red,yellow_background\ a big red text with a yellow background }}

    {{^@2.5,$00f,#eee,black_outline\ a big blue text with a light gray background and a black outline }}

    Those lists can be named, so that you can reuse them elsewhere in the document :

    {{^blue,italic:gangnam\ a blue text in italics }}

    !^gangnam\ This title also uses the gangnam style.

    OriginalGriffO C J 3 Replies Last reply
    0
    • E Ecstatic Coder

      Markdown is really a great alternative to HTML, and I've used it for a while, but unfortunately it had some quirks and limitations that REALLY annoyed me, like the inability to apply styling classes where needed. If some of you are in the same case, I've released an alternative lightweight markup language (https://github.com/senselogic/PENDOWN) especially designed to fix those problems. It can be quickly converted to HTML in the navigator through a JS script, or offline by a server-side command line tool. For those interested, here are a few sample tags :

      ! Heading 1
      !! Heading 2
      !!! Heading 3
      !!!! Heading 4
      !!!!! Heading 5
      !!!!!! Heading 6

      **bold**
      %%italics%%
      ^^superscript^^
      ,,subscript,,
      strikethrough
      __underlined__
      ##highlighted##

      {{ span }}
      {{{ div }}}

      box

      +++ frame +++

      quote >>>
      ::: pre :::

      :::^cpp\
      // Colorized source code

      #include using namespace std;

      int main()
      {
      cout << "Hello world!";

      return 0;
      

      }
      :::

      [[[
      (( Monday | Tuesday | Wednesday ))
      (( 1 | 2 | 3 ))
      (( 1 | 2 | 3 ))
      (( 1 | 2 | 3 ))
      ]]]

      * List
      * List
      * Sub-list
      * Sub-list
      # Numbered sub-list
      # Numbered sub-list
      # Numbered sub-list
      # Numbered sub-list
      # Numbered
      sub-list

      @@http://www.github.com A link to Github@@
      @@http://www.github.com [[image.jpg:20]]@@
      @@http://www.github.com@@

      [[image.jpg]]
      [[image.jpg:20]]
      [[image.jpg:20vw,20%]]

      After a Pendown tag, you can specify one or several lists of classes and properties :

      {{^big,red,yellow_background\ a big red text with a yellow background }}

      {{^@2.5,$00f,#eee,black_outline\ a big blue text with a light gray background and a black outline }}

      Those lists can be named, so that you can reuse them elsewhere in the document :

      {{^blue,italic:gangnam\ a blue text in italics }}

      !^gangnam\ This title also uses the gangnam style.

      OriginalGriffO Online
      OriginalGriffO Online
      OriginalGriff
      wrote on last edited by
      #2

      This is the wrong place to post this, really - this forum can move very fats, and posts like this can be swept into oblivion quickly. Instead, have you considered posting this as a Tip? Submit a new Article[^] As it stands, it wouldn't qualify as an article, but with a little more detail a tip should be fine. And it would be a lot easier to find later!

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      J E 2 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        This is the wrong place to post this, really - this forum can move very fats, and posts like this can be swept into oblivion quickly. Instead, have you considered posting this as a Tip? Submit a new Article[^] As it stands, it wouldn't qualify as an article, but with a little more detail a tip should be fine. And it would be a lot easier to find later!

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        J Offline
        J Offline
        Johnny J
        wrote on last edited by
        #3

        OriginalGriff wrote:

        this forum can move very fats

        HEY! I resemble that remark! I'm only slightly overweight! :mad:

        Anything that is unrelated to elephants is irrelephant
        Anonymous
        -----
        The problem with quotes on the internet is that you can never tell if they're genuine
        Winston Churchill, 1944
        -----
        Never argue with a fool. Onlookers may not be able to tell the difference.
        Mark Twain

        1 Reply Last reply
        0
        • E Ecstatic Coder

          Markdown is really a great alternative to HTML, and I've used it for a while, but unfortunately it had some quirks and limitations that REALLY annoyed me, like the inability to apply styling classes where needed. If some of you are in the same case, I've released an alternative lightweight markup language (https://github.com/senselogic/PENDOWN) especially designed to fix those problems. It can be quickly converted to HTML in the navigator through a JS script, or offline by a server-side command line tool. For those interested, here are a few sample tags :

          ! Heading 1
          !! Heading 2
          !!! Heading 3
          !!!! Heading 4
          !!!!! Heading 5
          !!!!!! Heading 6

          **bold**
          %%italics%%
          ^^superscript^^
          ,,subscript,,
          strikethrough
          __underlined__
          ##highlighted##

          {{ span }}
          {{{ div }}}

          box

          +++ frame +++

          quote >>>
          ::: pre :::

          :::^cpp\
          // Colorized source code

          #include using namespace std;

          int main()
          {
          cout << "Hello world!";

          return 0;
          

          }
          :::

          [[[
          (( Monday | Tuesday | Wednesday ))
          (( 1 | 2 | 3 ))
          (( 1 | 2 | 3 ))
          (( 1 | 2 | 3 ))
          ]]]

          * List
          * List
          * Sub-list
          * Sub-list
          # Numbered sub-list
          # Numbered sub-list
          # Numbered sub-list
          # Numbered sub-list
          # Numbered
          sub-list

          @@http://www.github.com A link to Github@@
          @@http://www.github.com [[image.jpg:20]]@@
          @@http://www.github.com@@

          [[image.jpg]]
          [[image.jpg:20]]
          [[image.jpg:20vw,20%]]

          After a Pendown tag, you can specify one or several lists of classes and properties :

          {{^big,red,yellow_background\ a big red text with a yellow background }}

          {{^@2.5,$00f,#eee,black_outline\ a big blue text with a light gray background and a black outline }}

          Those lists can be named, so that you can reuse them elsewhere in the document :

          {{^blue,italic:gangnam\ a blue text in italics }}

          !^gangnam\ This title also uses the gangnam style.

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          It's way more helpful to post an article and share the code than it is to advertise your project on the Lounge. Imagine if everyone posted "hey, check out my new tool" message. I'm going to move this to the free tools forum. Besides that, I have two comments 1. Well done. I too am writing Yet Another Markdown Processor myself because the current ones are too ambiguous and don't have everything I want. It's a PITA to get all the cases right. 2. I don't, however, understand the motivation for creating yet another syntax that's not compatible with markdown just to add styling. Markdown already includes the ability to include plain HTML with styles and classes. Further, the intent of Markdown is that "a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions". So what you've proposed is actually a markup, not markdown. Maybe it's worth creating an extension to markdown that allows style classes to be defined the way you've done it, but within a syntax that's backwards compatible with Markdown (whatever that means these days(

          cheers Chris Maunder

          Richard DeemingR E 2 Replies Last reply
          0
          • OriginalGriffO OriginalGriff

            This is the wrong place to post this, really - this forum can move very fats, and posts like this can be swept into oblivion quickly. Instead, have you considered posting this as a Tip? Submit a new Article[^] As it stands, it wouldn't qualify as an article, but with a little more detail a tip should be fine. And it would be a lot easier to find later!

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

            E Offline
            E Offline
            Ecstatic Coder
            wrote on last edited by
            #5

            I agree, a tip or an article would be much more suited and useful :)

            1 Reply Last reply
            0
            • C Chris Maunder

              It's way more helpful to post an article and share the code than it is to advertise your project on the Lounge. Imagine if everyone posted "hey, check out my new tool" message. I'm going to move this to the free tools forum. Besides that, I have two comments 1. Well done. I too am writing Yet Another Markdown Processor myself because the current ones are too ambiguous and don't have everything I want. It's a PITA to get all the cases right. 2. I don't, however, understand the motivation for creating yet another syntax that's not compatible with markdown just to add styling. Markdown already includes the ability to include plain HTML with styles and classes. Further, the intent of Markdown is that "a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions". So what you've proposed is actually a markup, not markdown. Maybe it's worth creating an extension to markdown that allows style classes to be defined the way you've done it, but within a syntax that's backwards compatible with Markdown (whatever that means these days(

              cheers Chris Maunder

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #6

              Chris Maunder wrote:

              I too am writing Yet Another Markdown Processor

              Obligatory XKCD[^]. :)


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              1 Reply Last reply
              0
              • C Chris Maunder

                It's way more helpful to post an article and share the code than it is to advertise your project on the Lounge. Imagine if everyone posted "hey, check out my new tool" message. I'm going to move this to the free tools forum. Besides that, I have two comments 1. Well done. I too am writing Yet Another Markdown Processor myself because the current ones are too ambiguous and don't have everything I want. It's a PITA to get all the cases right. 2. I don't, however, understand the motivation for creating yet another syntax that's not compatible with markdown just to add styling. Markdown already includes the ability to include plain HTML with styles and classes. Further, the intent of Markdown is that "a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions". So what you've proposed is actually a markup, not markdown. Maybe it's worth creating an extension to markdown that allows style classes to be defined the way you've done it, but within a syntax that's backwards compatible with Markdown (whatever that means these days(

                cheers Chris Maunder

                E Offline
                E Offline
                Ecstatic Coder
                wrote on last edited by
                #7

                Indeed an article will be more useful and durable :) About the syntax, actually the first implemented version was much closer to Markdown, but over the time the syntax has evolved a lot, mostly in order to remove many Markdown limitations. For instance Pendown's tags are especially chosen to generate almost no collision with standard C-like code (except for << and >> I think) so that the tags can be freely used in code snippets. And the table syntax allows tables to be embedded into other tables. Etc etc... So I agree, Pendown is not a Markdown variant, but I still think it's a good alternative, with many improvements over its spiritual ancestor :)

                1 Reply Last reply
                0
                • E Ecstatic Coder

                  Markdown is really a great alternative to HTML, and I've used it for a while, but unfortunately it had some quirks and limitations that REALLY annoyed me, like the inability to apply styling classes where needed. If some of you are in the same case, I've released an alternative lightweight markup language (https://github.com/senselogic/PENDOWN) especially designed to fix those problems. It can be quickly converted to HTML in the navigator through a JS script, or offline by a server-side command line tool. For those interested, here are a few sample tags :

                  ! Heading 1
                  !! Heading 2
                  !!! Heading 3
                  !!!! Heading 4
                  !!!!! Heading 5
                  !!!!!! Heading 6

                  **bold**
                  %%italics%%
                  ^^superscript^^
                  ,,subscript,,
                  strikethrough
                  __underlined__
                  ##highlighted##

                  {{ span }}
                  {{{ div }}}

                  box

                  +++ frame +++

                  quote >>>
                  ::: pre :::

                  :::^cpp\
                  // Colorized source code

                  #include using namespace std;

                  int main()
                  {
                  cout << "Hello world!";

                  return 0;
                  

                  }
                  :::

                  [[[
                  (( Monday | Tuesday | Wednesday ))
                  (( 1 | 2 | 3 ))
                  (( 1 | 2 | 3 ))
                  (( 1 | 2 | 3 ))
                  ]]]

                  * List
                  * List
                  * Sub-list
                  * Sub-list
                  # Numbered sub-list
                  # Numbered sub-list
                  # Numbered sub-list
                  # Numbered sub-list
                  # Numbered
                  sub-list

                  @@http://www.github.com A link to Github@@
                  @@http://www.github.com [[image.jpg:20]]@@
                  @@http://www.github.com@@

                  [[image.jpg]]
                  [[image.jpg:20]]
                  [[image.jpg:20vw,20%]]

                  After a Pendown tag, you can specify one or several lists of classes and properties :

                  {{^big,red,yellow_background\ a big red text with a yellow background }}

                  {{^@2.5,$00f,#eee,black_outline\ a big blue text with a light gray background and a black outline }}

                  Those lists can be named, so that you can reuse them elsewhere in the document :

                  {{^blue,italic:gangnam\ a blue text in italics }}

                  !^gangnam\ This title also uses the gangnam style.

                  J Offline
                  J Offline
                  jasonstanley
                  wrote on last edited by
                  #8

                  Thank you I just used it for my purpose.

                  E 1 Reply Last reply
                  0
                  • J jasonstanley

                    Thank you I just used it for my purpose.

                    E Offline
                    E Offline
                    Ecstatic Coder
                    wrote on last edited by
                    #9

                    My pleasure :)

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


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups