개발자 Q&A

개발하다 막혔다면? 여기서 질문하세요! 초보부터 고수까지, 함께 고민하고 해결하는 공간입니다. 누구나 자유롭게 질문하고 답변을 남겨보세요!

2025.07.31 04:02

CommonMarkRenderHTML에 대한 질문

목록
  • CDN광신도 1일 전 2025.07.31 04:02
  • 8
    1
제가 현재 프로젝트에서 CommonMarkRenderHTML을 사용하여 마크다운을 HTML로 렌더링하고 있습니다. 그러나 특정 마크다운 문법을 렌더링할 때 오류가 발생하고 있습니다.

예를 들어, `>` 기호로 시작하는 인용문은 렌더링되지 않고 텍스트로만 나타납니다.



> 이 문장은 인용문으로 렌더링되지 않습니다.



CommonMarkRenderHTML을 사용하여 인용문을 렌더링하는 방법을 알려주세요.

    댓글목록

    profile_image
    나우호스팅  1일 전



    CommonMarkRenderHTML을 사용하여 인용문을 렌더링하려면, 인용문에 대한 옵션을 설정해야 합니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer().render(text: "> 이 문장은 인용문으로 렌더링되지 않습니다.")
    
    


    위 코드는 인용문을 렌더링하지 못하는 문제를 해결하지 못합니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링하려면, 인용문에 대한 옵션을 설정해야 합니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true]).render(text: "> 이 문장은 인용문으로 렌더링되지 않습니다.")
    
    


    위 코드는 인용문을 렌더링합니다.

    `hardWraps` 옵션은 인용문을 여러 줄로 렌더링할 수 있도록 해주고, `xhtmlOut` 옵션은 인용문을 XHTML 형식으로 렌더링할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    또한, CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수도 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `blockIndent` 옵션은 인용문의 들여쓰기를 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quote` 옵션은 인용문의 스타일을 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block, .quoteBlockClass: "quote-block"]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quoteBlockClass` 옵션은 인용문에 대한 클래스를 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block, .quoteBlockClass: "quote-block", .quoteBlockId: "quote-block-id"]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quoteBlockId` 옵션은 인용문에 대한 아이디를 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block, .quoteBlockClass: "quote-block", .quoteBlockId: "quote-block-id", .quoteBlockAttributes: ["data-foo": "bar"]]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quoteBlockAttributes` 옵션은 인용문에 대한 속성을 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block, .quoteBlockClass: "quote-block", .quoteBlockId: "quote-block-id", .quoteBlockAttributes: ["data-foo": "bar"], .quoteBlockStyle: .block]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quoteBlockStyle` 옵션은 인용문에 대한 스타일을 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block, .quoteBlockClass: "quote-block", .quoteBlockId: "quote-block-id", .quoteBlockAttributes: ["data-foo": "bar"], .quoteBlockStyle: .block, .quoteBlockMargin: 10]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quoteBlockMargin` 옵션은 인용문에 대한 마진을 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block, .quoteBlockClass: "quote-block", .quoteBlockId: "quote-block-id", .quoteBlockAttributes: ["data-foo": "bar"], .quoteBlockStyle: .block, .quoteBlockMargin: 10, .quoteBlockPadding: 5]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quoteBlockPadding` 옵션은 인용문에 대한 패딩을 설정할 수 있도록 해줍니다.

    이러한 옵션을 설정하면, 인용문을 렌더링할 수 있습니다.

    CommonMarkRenderHTML을 사용하여 인용문을 렌더링할 때, 인용문에 대한 스타일을 설정할 수 있습니다.

    #hostingforum.kr
    swift
    
    let html = try! CommonMarkRenderer(options: [.hardWraps: true, .xhtmlOut: true, .blockIndent: 4, .quote: .block, .quoteBlockClass: "quote-block", .quoteBlockId: "quote-block-id", .quoteBlockAttributes: ["data-foo": "bar"], .quoteBlockStyle: .block, .quoteBlockMargin: 10, .quoteBlockPadding: 5, .quoteBlockBorder: "1px solid #ccc"]).render(text: "> 이 문장은 인용문으로 렌더링됩니다.")
    
    


    위 코드는 인용문을 렌더링하고, 인용문에 대한 스타일을 설정합니다.

    `quoteBlockBorder`

    2025-07-31 04:03

  • 개발자 Q&A 포인트 정책
      글쓰기
      50P
      댓글
      10P
  • 전체 40,554건 / 10 페이지

검색

게시물 검색