Coder Social home page Coder Social logo

gitenberg's People

Contributors

bangank36 avatar johngodley avatar

Watchers

 avatar

gitenberg's Issues

Gitenberg: accordion block for gfm

Summary

  • GFM did not support accordion block by default, the workaround solution is using tag to display a disclosure content
  • The block should consist of 2 parts
    • The title
    • The content of the tag, should we use innerBlock, because inside we can display all other content like text and image
  • The block will need only the open attribute for the disclosures content

Reference

TBA
https://togithub.com/WordPress/gutenberg/issues/21584

Gitenberg: Supported blocks

Summary

  • Not all gutenberg blocks are supported on github, we should limit the blocks selector with the valid one and add new block if needed (comes later)
  • Default settings schema can be found here
Blocks Notes
'core/image'
'core/heading'
'core/quote'
'core/list'
'core/pullquote' Similar to quote
'core/table'
'core/table' Needs test
'core/paragraph'

Reference

Gitenberg: support gfm for turndown

Summary

Editor Output
SCR-20230526-l0q SCR-20230526-l0u

Implementation

  • Import turndown-plugin-gfm

Gitenberg: customize markdown-it for blocks

Summary

  • So far the #7 introduced the new block (Shields Badge), which is image underline, so the block will be parsed as image block on load
  • We need to tweak the markdown-it library to parse the images into Shields Badge based on its src attribute
  • First attempt with overridden renderer is not working as the generated HTML image is wrapped inside a p tag, check the below comment

Reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.