Billy Barrow 2 жил өмнө
parent
commit
a7c2deedc3

+ 7 - 1
src/lib/NodeActions/Code.vala

@@ -32,7 +32,13 @@ namespace GtkCommonMark.NodeActions {
                         if(j != 0) {
                             buffer.insert_with_tags(ref iter, "·", -1, glyph);
                         }
-                        buffer.insert(ref iter, spaces[j], -1);
+                        var tabs = spaces[j].split("\t");
+                        for(var k = 0; k < tabs.length; k++) {
+                            if(k != 0) { 
+                                buffer.insert_with_tags(ref iter, "⇉   ", -1, glyph);
+                            }
+                            buffer.insert(ref iter, tabs[k], -1);
+                        }
                     }
                 }
             }

+ 0 - 1
src/lib/NodeActions/Quote.vala

@@ -16,7 +16,6 @@ namespace GtkCommonMark.NodeActions {
             glyph.scale = 2;
 
             buffer.insert_with_tags(ref iter, "“\t", -1, glyph);
-            buffer.insert(ref iter, @"QL-$(self_nested_count())", -1);
         }
 
         public override void at_end(Gtk.TextBuffer buffer, ref Gtk.TextIter iter) {

+ 1 - 1
test.md

@@ -24,7 +24,7 @@ namespace GtkCommonMark.NodeActions {
     public class CodeBlock : SimpleNodeAction {
 
         public CodeBlock(CMark.Node node) {
-            base(node);
+			base(node);
         }
 
         public override Gtk.TextTag get_tag(TagManager tags) {